Optionalapply?: OptionalbeforeEdit?: null | (e: WbNodeEventType) => boolean | stringbeforeEdit(e) may return an input HTML string. Otherwise use a default.
Optionaldebounce?: numberUsed to debounce the change event handler for grid cells [ms].
Optionaledit?: null | (e: WbNodeEventType & { inputElem: HTMLInputElement }) => voidOptionalmaxlength?: null | numberMaximum number of characters allowed for node title input field.
Optionalminlength?: numberMinimum number of characters required for node title input field.
Optionalselect?: booleanSelect all text of a node title, so it can be overwritten by typing.
OptionalslowClickDelay?: numberHandle 'clickActive' only if last click is less than this ms old (0: always)
Optionaltrigger?: 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.
Optionaltrim?: booleanTrim whitespace before saving a node title.
Optionalvalidity?: booleanPermanently apply node title input validations (CSS and tooltip) on keydown.
Note:
This options are used for renaming node titles.
There is also the
tree.changeevent to handle modifying node data from input controls that are embedded in grid cells.