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

> The withTreePersistence function of @salmonui/data-grid/engine/tree: Storage binding functions that include tree.expandedRows (wraps DATA_GRID_PERSISTENCE_FNS).

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

```ts
import { withTreePersistence } 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 withTreePersistence(fns: DataGridPersistenceFns): DataGridPersistenceFns;
```

Storage binding functions that include `tree.expandedRows` (wraps `DATA_GRID_PERSISTENCE_FNS`).
