Interface: BuildTreeStateConfig\<TRow\>
Defined in: src/tree-editor/build-tree-state.ts:7
Configuration for buildTreeState. A subset of TreeDataConfig — the
tree editor always works from nested-or-flat user data and an id accessor.
Type Parameters
TRow
TRow
Properties
getChildren?
optionalgetChildren?: (row) =>TRow[] |undefined
Defined in: src/tree-editor/build-tree-state.ts:11
Nested data: returns a row’s children, or undefined for a leaf.
Parameters
row
TRow
Returns
TRow[] | undefined
getParentId?
optionalgetParentId?: (row) =>string|null|undefined
Defined in: src/tree-editor/build-tree-state.ts:13
Flat data: returns a row’s parent id, or null/undefined for a root.
Parameters
row
TRow
Returns
string | null | undefined
getRowId
getRowId: (
row) =>string
Defined in: src/tree-editor/build-tree-state.ts:9
Returns a stable, unique id for a row.
Parameters
row
TRow
Returns
string