---
title: "editor.freezePreview: Preview a Freeze — Sheet kit command — Kition"
description: "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."
canonical: "https://developer.kition.ai/docs/kits/sheet/commands/editor.freezePreview"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/sheet/commands/editor.freezePreview](https://developer.kition.ai/docs/kits/sheet/commands/editor.freezePreview)

# 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)); reference: [Sheet kit commands](https://developer.kition.ai/docs/kits/sheet.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `cols` | `integer` | no | columns that would freeze |
| `rows` | `integer` | no | rows 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

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `preview` | `null \| integer[]` | no |  |

```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/sheet-darwin-arm64@0.1.0 and the kit itself (sheet_commands through @kition/cli@0.1.1, built from KitionAI/kition-sheet@82f13b2).
