Interface: TreeEditorConfig\<TRow\>
Defined in: src/tree-editor/types.ts:62
Configuration for the tree editor.
Type Parameters
TRow
TRow
Properties
createNode?
optionalcreateNode?: (parentId) =>TRow
Defined in: src/tree-editor/types.ts:70
Factory for creating new nodes.
Parameters
parentId
string | null
Returns
TRow
enableDrag?
optionalenableDrag?:boolean
Defined in: src/tree-editor/types.ts:64
Whether drag-to-reparent is enabled. Default: true.
enableIndent?
optionalenableIndent?:boolean
Defined in: src/tree-editor/types.ts:66
Whether keyboard indent/outdent is enabled. Default: true.
generateId?
optionalgenerateId?: () =>string
Defined in: src/tree-editor/types.ts:72
Generate a unique ID for new/pasted nodes.
Returns
string
historyDepth?
optionalhistoryDepth?:number
Defined in: src/tree-editor/types.ts:74
Maximum undo history depth. Default: 50.
validateMove?
optionalvalidateMove?:MoveValidator<TRow>
Defined in: src/tree-editor/types.ts:68
Custom move validator.