Skip to content

Tree.handleItemSelection method

Tree › handleItemSelection

Unofficial

Handle a click on a tree item, applying the Alt-click and Shift-click selection rules.

Signature:

handleItemSelection(event: MouseEvent, node: T): boolean

Parameters:

ParameterTypeDescription
eventMouseEventThe mouse event that triggered the selection.
nodeTThe tree item clicked on.

Returns: boolean — true when the click was handled as a selection change and the item must not be opened.