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

> The checkStateOf function of @salmonui/data-grid/engine/tree: Tri-state of a row: checked when it and every kept descendant are selected, unchecked when none is, else mixed.

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

```ts
import { checkStateOf } 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: function

```ts
function checkStateOf(layout: TreeLayout, counts: Int32Array, sourceIndex: number, own: boolean): TreeCheckState;
```

Tri-state of a row: `checked` when it and every kept descendant are
selected, `unchecked` when none is, else `mixed`.
