Selection
A TreeView item is selected when its selected
field is set to true
.
Instead of selected
, you can implement your own field by setting the selectField
property to the name of that custom field.
The TreeView supports both single and multiple selections. When the selection is multiple
, set the aria-multiselectable
property to true
for better accessibility.