Optional
apply?: null | ((e) => any) | Promise<any>Optional
beforebeforeEdit(e)
may return an input HTML string. Otherwise use a default.
Optional
debounce?: numberUsed to debounce the change
event handler for grid cells [ms].
100
Optional
edit?: null | ((e) => void)Optional
maxlength?: null | numberMaximum number of characters allowed for node title input field.
null;
Optional
minlength?: numberMinimum number of characters required for node title input field.
1
Optional
select?: booleanSelect all text of a node title, so it can be overwritten by typing.
true
Optional
slowHandle 'clickActive' only if last click is less than this ms old (0: always)
1000
Optional
trigger?: string[]Array of strings to determine which user input should trigger edit mode.
E.g. ["clickActive", "F2", "macEnter"]
:
'clickActive': single click on active node title
'F2': press F2 key
'macEnter': press Enter (on macOS only)
Pass an empty array to disable edit mode.
[]
Optional
trim?: booleanTrim whitespace before saving a node title.
true
Optional
validity?: booleanPermanently apply node title input validations (CSS and tooltip) on keydown.
true
Note:
This options are used for renaming node titles.
There is also the
tree.change
event to handle modifying node data from input controls that are embedded in grid cells.