API reference: @salmonui/data-grid/engine/tree
TreeSetExpandedCommandtype
import type { TreeSetExpandedCommand } from '@salmonui/data-grid/engine/tree';type TreeSetExpandedCommand = {
type: 'tree.setExpanded';
expanded: {
[rowId: string]: boolean;
};
defaultExpanded?: boolean | number;
};
Controlled expansion: replaces the overrides (and optionally the default).
| Name | Signature | Description |
|---|---|---|
type | type: 'tree.setExpanded'; | |
expanded | expanded: {
[rowId: string]: boolean;
}; | |
defaultExpandedoptional | defaultExpanded?: boolean | number; |