---
title: "style.table.edit: Table Style Options — Layout kit command — Kition"
description: "Changes a table style; tables using it follow."
canonical: "https://developer.kition.ai/docs/kits/layout/commands/style.table.edit"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/layout/commands/style.table.edit](https://developer.kition.ai/docs/kits/layout/commands/style.table.edit)

# style.table.edit

**Table Style Options.** Changes a table style; tables using it follow.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `altRows` | `object` | no |  |
| `basedOn` | `string` | no |  |
| `body` | `string` | no |  |
| `border` | `object` | no |  |
| `footer` | `string` | no |  |
| `header` | `string` | no |  |
| `leftColumn` | `string` | no |  |
| `name` | `string` | no |  |
| `rightColumn` | `string` | no |  |
| `spaceAfter` | `number` | no | read by the command beside its listed parameters |
| `spaceBefore` | `number` | no | read by the command beside its listed parameters |

## Call through layout_run

```text
layout_run {
  "path": "<file>.klayout",
  "steps": [{ "command": "style.table.edit" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `altRows`, `basedOn`, `body`, `border`, `footer`, `header`, `leftColumn`, `name`, `rightColumn`, `spaceAfter`, `spaceBefore`. layout_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": {
    "altRows": {
      "additionalProperties": true,
      "properties": {
        "firstColor": {
          "type": "string",
          "x-khp-name": "name",
          "x-khp-role": "object",
          "x-khp-types": [
            "Swatch"
          ]
        },
        "nextColor": {
          "type": "string",
          "x-khp-name": "name",
          "x-khp-role": "object",
          "x-khp-types": [
            "Swatch"
          ]
        }
      },
      "type": "object"
    },
    "basedOn": {
      "type": "string",
      "x-khp-name": "tableName",
      "x-khp-types": [
        "Style"
      ]
    },
    "body": {
      "type": "string",
      "x-khp-name": "cellName",
      "x-khp-types": [
        "Style"
      ]
    },
    "border": {
      "additionalProperties": true,
      "properties": {
        "color": {
          "type": "string",
          "x-khp-name": "name",
          "x-khp-role": "object",
          "x-khp-types": [
            "Swatch"
          ]
        }
      },
      "type": "object"
    },
    "footer": {
      "type": "string",
      "x-khp-name": "cellName",
      "x-khp-types": [
        "Style"
      ]
    },
    "header": {
      "type": "string",
      "x-khp-name": "cellName",
      "x-khp-types": [
        "Style"
      ]
    },
    "leftColumn": {
      "type": "string",
      "x-khp-name": "cellName",
      "x-khp-types": [
        "Style"
      ]
    },
    "name": {
      "type": "string",
      "x-khp-name": "tableName",
      "x-khp-types": [
        "Style"
      ]
    },
    "rightColumn": {
      "type": "string",
      "x-khp-name": "cellName",
      "x-khp-types": [
        "Style"
      ]
    },
    "spaceAfter": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "spaceBefore": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/layout-darwin-arm64@0.1.0 and the kit itself (layout_commands through @kition/cli@0.1.1, built from KitionAI/kition-layout@8767a18).
