Tree provides an ability to select leaves and branches within it.
By default, selection is disabled in Tree. To activate it, set the select parameter to true.
Enabling selection in Tree
var tree = webix.ui({
view: "tree",
...
select: true
});
To enable multiple selection in Tree, set the select parameter to multiselect.
Enabling multi-selection in Tree
var tree = 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 |