selectionMode([mode])
Class: Tree.
Description:
Sets or gets a selection mode of the tree items, which defines how items can be selected (only one item, a multiple items as a range, or any combination of items).
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
One of: SelectionMode.Single, SelectionMode.Multiple, SelectionMode.Range. See SelectionMode |
Returns:
If no arguments are supplied, current selection mode is returned; otherwise this Tree component is returned.
Type: SelectionMode | Tree
Examples:
Setting a selection mode:
tree.selectionMode(SelectionMode.Single);
