Tree provides an ability to select leaves and branches within it.
By default, selection is disabled in Tree. To activate it you should set the select parameter to true.
Enabling selection in Tree
tree = new webix.ui({
view: "tree",
...
select: true
})
To enable multiple selection in Tree, you should set parameter select to multiselect.
Enabling multi-selection in Tree
tree = new webix.ui({
view: "tree",
...
select: "multiselect"
})
Related sample: Multiline Selection
getSelectedId | method | returns the selected cells |
moveSelection | method | moves selection in the specified direction |
select | method | selects the specified item |
selectAll | method | selects all items |
isSelected | method | checks whether the specified item is selected or not |
unselect | method | cancels selection of the specified item |
unselectAll | method | removes selection from all items |
onAfterSelect | event | fires after a cell is selected |
onBeforeSelect | event | fires before a cell is selected |
onSelectChange | event | fires when selection is changed in DataTable |