. All events are bubbled to the item's parent tree.
- Events:
- BeforeAdd : (widget, item, index)
Fires before a item is added or inserted. Listeners can set the doit
field to false
to cancel the action.
- widget : this
- item : the item being added
- index : the index at which the item will be added
- BeforeRemove : (widget, item)
Fires before a item is removed. Listeners can set the doit
field to false
to cancel the action.
- widget : this
- item : the item being removed
- BeforeExpand : (widget, item)
Fires before a item is expanded. Listeners can set the doit
field to false
to cancel the expand.
- widget : this
- item : the item being expanded
- BeforeCollapse : (widget, item)
Fires before a item is collapsed. Listeners can set the doit
field to false
to cancel the collapse.
- widget : this
- item : the item being expanded
- Add : (widget, item, index)
Fires after a item has been added or inserted.
- widget : this
- item : the item that was added
- index : the index at which the item will be added
- Remove : (widget, item)
Fires after a item has been removed.
- widget : this
- item : the item being removed
- Expand : (widget, item)
Fires after a item has been expanded.
- widget : this
- item : the item being expanded
- Collapse : (widget, item)
Fires ater a item is collapsed.
- widget : this
- item : the item being collapsed
- CheckChange : (widget)
Fires after a check state change.
- CSS:
- .my-tree-item (the item itself)
- .my-tree-item-text span (the tree item text)