Optional
apply?: Optional
beforeEdit?: null | (e: WbNodeEventType) => boolean | stringbeforeEdit(e)
may return an input HTML string. Otherwise use a default.
Optional
debounce?: numberUsed to debounce the change
event handler for grid cells [ms].
Optional
edit?: null | (e: WbNodeEventType & { inputElem: HTMLInputElement }) => voidOptional
maxlength?: null | numberMaximum number of characters allowed for node title input field.
Optional
minlength?: numberMinimum number of characters required for node title input field.
Optional
select?: booleanSelect all text of a node title, so it can be overwritten by typing.
Optional
slowClickDelay?: numberHandle 'clickActive' only if last click is less than this ms old (0: always)
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.
Optional
validity?: 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.change
event to handle modifying node data from input controls that are embedded in grid cells.