Sheet kit command
table.newStyle
New Table Style
Defines a table style of the workbook's own (New Table Style), saved with the file: each part (whole table, header row, total row, first or last column, row or column stripes) with its fill, text colour, bold, italic, border and inside lines; or modifies one (replace).
- Kit
- Sheet 0.1.0 (.xlsx (and opens .xlsm, .xls, .xltx, .csv, .ods, .xlsb))
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
default | boolean | no | make it the workbook's default table style |
elements | any | no | by part (wholeTable, headerRow, totalRow, firstColumn, lastColumn, firstRowStripe, secondRowStripe, firstColumnStripe, secondColumnStripe): {fill, color, bold, italic, border, lines, size}, colours as "#RRGGBB" |
name | string | no | the style's name |
replace | string | no | the name of the workbook's style to modify |
Call through sheet_run
text
sheet_run {
"path": "<file>.xlsx",
"steps": [{ "command": "table.newStyle" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: default, elements, name, replace. sheet_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": {
"default": {
"description": "make it the workbook's default table style",
"type": "boolean"
},
"elements": {
"description": "by part (wholeTable, headerRow, totalRow, firstColumn, lastColumn, firstRowStripe, secondRowStripe, firstColumnStripe, secondColumnStripe): {fill, color, bold, italic, border, lines, size}, colours as \"#RRGGBB\""
},
"name": {
"description": "the style's name",
"type": "string"
},
"replace": {
"description": "the name of the workbook's style to modify",
"type": "string"
}
},
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (sheet_commands through @kition/[email protected], built from KitionAI/kition-sheet@82f13b2). As data: commands.jsonl.