# TreeCheckCommand (@salmonui/data-grid/engine/tree)

> The TreeCheckCommand type of @salmonui/data-grid/engine/tree: Checkbox toggle: with a cascade, the row's subtree in one selection update and the derived ancestors.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-tree/TreeCheckCommand

```ts
import type { TreeCheckCommand } from '@salmonui/data-grid/engine/tree';
```

Entry index: https://salmonui.dev/docs/reference/data-grid/engine-tree (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine-tree.md).

## Reference

Kind: type

```ts
type TreeCheckCommand = {
    type: 'tree.check';
    rowId: RowId;
    checked?: boolean;
};
```

Checkbox toggle: with a cascade, the row's subtree in one selection update and the derived ancestors.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `type: 'tree.check';` |  |  |
| `rowId` | `rowId: RowId;` |  |  |
| `checked` | `checked?: boolean;` | optional |  |
