Sheet kit command

editor.freezePreview

Preview a Freeze

Shows (or with no rows and cols, takes away) the preview of a freeze the editor's Freeze Panes menu points at: the rows and columns that would freeze, tinted, and the line under and right of them. Changes nothing.

Kit
Sheet 0.1.0 (.xlsx (and opens .xlsm, .xls, .xltx, .csv, .ods, .xlsb))
Changes the document
no

Parameters

Parameters of editor.freezePreview
NameTypeRequiredDescription
colsintegernocolumns that would freeze
rowsintegernorows that would freeze

Call through sheet_run

text
sheet_run {
  "path": "<file>.xlsx",
  "steps": [{ "command": "editor.freezePreview" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: cols, rows. sheet_run answers the step’s result in completed[i].result.

Result

Result of editor.freezePreview
NameTypeRequiredDescription
previewnull | integer[]no
Result JSON Schema
json
{
  "additionalProperties": false,
  "properties": {
    "preview": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "items": {
            "type": "integer"
          },
          "type": "array"
        }
      ]
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "cols": {
      "description": "columns that would freeze",
      "type": "integer"
    },
    "rows": {
      "description": "rows that would freeze",
      "type": "integer"
    }
  },
  "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.