Doc kit command
table.properties
Properties
Sets the properties of the table at the caret: alignment, width, indent, row and cell options.
- Kit
- Doc 0.1.0 (.docx)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
align | "left" | "center" | "right" | no | |
allowBreak | boolean | no | |
cellWidth | number | null | no | the caret cell's preferred width in points; null clears it (automatic) |
columnWidth | number | no | points |
headerRow | boolean | no | |
indent | number | no | points |
rowHeight | number | null | no | the row height in points; null clears it (automatic) |
rowHeightRule | "atLeast" | "exact" | no | |
valign | "top" | "center" | "bottom" | no | |
width | number | null | no | the table's preferred width in points; null clears it (automatic) |
widthPct | number | no | percent |
Call through doc_run
text
doc_run {
"path": "<file>.docx",
"steps": [{ "command": "table.properties" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: align, allowBreak, cellWidth, columnWidth, headerRow, indent, rowHeight, rowHeightRule, valign, width, widthPct. doc_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": {
"align": {
"enum": [
"left",
"center",
"right"
],
"type": "string"
},
"allowBreak": {
"type": "boolean"
},
"cellWidth": {
"description": "the caret cell's preferred width in points; null clears it (automatic)",
"oneOf": [
{
"description": "the caret cell's preferred width in points",
"type": "number"
},
{
"type": "null"
}
]
},
"columnWidth": {
"description": "points",
"type": "number"
},
"headerRow": {
"type": "boolean"
},
"indent": {
"description": "points",
"type": "number"
},
"rowHeight": {
"description": "the row height in points; null clears it (automatic)",
"oneOf": [
{
"description": "the row height in points",
"type": "number"
},
{
"type": "null"
}
]
},
"rowHeightRule": {
"enum": [
"atLeast",
"exact"
],
"type": "string"
},
"valign": {
"enum": [
"top",
"center",
"bottom"
],
"type": "string"
},
"width": {
"description": "the table's preferred width in points; null clears it (automatic)",
"oneOf": [
{
"description": "the table's preferred width in points",
"type": "number"
},
{
"type": "null"
}
]
},
"widthPct": {
"description": "percent",
"type": "number"
}
},
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (doc_commands through @kition/[email protected], built from KitionAI/kition-doc@41e14a8). As data: commands.jsonl.