---
title: "object.slice.options: Slice Options… — Vector kit command — Kition"
description: "Sets the selected slices' web options: kind, name, URL, target, message, alt text, cell text, background and alignment."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/object.slice.options"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/vector/commands/object.slice.options](https://developer.kition.ai/docs/kits/vector/commands/object.slice.options)

# object.slice.options

**Slice Options….** Sets the selected slices' web options: kind, name, URL, target, message, alt text, cell text, background and alignment.

- Kit: Vector 0.1.0 (.kvector); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `alt` | `string` | no |  |
| `background` | `"" \| "matte" \| "#rrggbb"` | no |  |
| `hAlign` | `"default" \| "left" \| "center" \| "right"` | no |  |
| `htmlText` | `string` | no | read by the command beside its listed parameters |
| `kind` | `"image" \| "noImage" \| "htmlText"` | no | object slices of type only |
| `message` | `string` | no |  |
| `name` | `string` | no |  |
| `target` | `string` | no |  |
| `text` | `string` | no |  |
| `url` | `string` | no |  |
| `vAlign` | `"default" \| "top" \| "middle" \| "baseline" \| "bottom"` | no |  |

## Call through vector_run

```text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "object.slice.options" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `alt`, `background`, `hAlign`, `htmlText`, `kind`, `message`, `name`, `target`, `text`, `url`, `vAlign`. vector_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "alt": {
      "type": "string"
    },
    "background": {
      "enum": [
        "",
        "matte",
        "#rrggbb"
      ],
      "type": "string"
    },
    "hAlign": {
      "enum": [
        "default",
        "left",
        "center",
        "right"
      ],
      "type": "string"
    },
    "htmlText": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "kind": {
      "description": "object slices of type only",
      "enum": [
        "image",
        "noImage",
        "htmlText"
      ],
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "target": {
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "vAlign": {
      "enum": [
        "default",
        "top",
        "middle",
        "baseline",
        "bottom"
      ],
      "type": "string"
    }
  },
  "returns": "the first slice's {kind, name, url, target, message, alt, text, background, hAlign, vAlign, htmlText: whether HTML Text applies}",
  "type": "object"
}
```

Generated from the command list of @kition/vector-darwin-arm64@0.1.0 and the kit itself (vector_commands through @kition/cli@0.1.1, built from KitionAI/kition-vector@7cf908f).
