Layout kit command

style.table.edit

Table Style Options

Changes a table style; tables using it follow.

Kit
Layout 0.1.0 (.klayout)
Changes the document
yes

Parameters

Parameters of style.table.edit
NameTypeRequiredDescription
altRowsobjectno
basedOnstringno
bodystringno
borderobjectno
footerstringno
headerstringno
leftColumnstringno
namestringno
rightColumnstringno
spaceAfternumbernoread by the command beside its listed parameters
spaceBeforenumbernoread 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/[email protected] and the kit itself (layout_commands through @kition/[email protected], built from KitionAI/kition-layout@8767a18). As data: commands.jsonl.