virtual class domkit::Tree
sys::Obj dom::Elem domkit::Box domkit::Tree
@Js
Tree visualizes TreeNodes
as a series of expandable nodes.
See also: docDomkit
- expand
-
Void expand(TreeNode node, Bool expanded)
Set expanded state for given node.
- make
-
new make()
Constructor.
- onAction
-
Void onAction(Func<Void,Tree,Event> f)
Callback when a node has been double clicked.
- onSelect
-
Void onSelect(Func<Void,This> f)
Callback when selection changes.
- onTreeEvent
-
Void onTreeEvent(Str type, Func<Void,TreeEvent> f)
Callback when a event occurs inside a tree node.
- rebuild
-
Void rebuild()
Rebuild tree layout.
- refresh
-
Void refresh()
Refresh tree content.
- refreshNode
-
Void refreshNode(TreeNode node)
Refresh given node.
- roots
-
List<TreeNode> roots := TreeNode[,]
Root nodes for this tree.
- sel
-
Selection sel { private set }
Selection for tree. Index based selection is not supported for Tree.