virtual class domkit::Tree

sys::Obj
  dom::Elem
    domkit::Box
      domkit::Tree

@Js

Source

Tree visualizes TreeNodes as a series of expandable nodes.

See also: docDomkit

expand

Void expand(TreeNode node, Bool expanded)

Source

Set expanded state for given node.

make

new make()

Source

Constructor.

onAction

Void onAction(Func<Void,Tree,Event> f)

Source

Callback when a node has been double clicked.

onSelect

Void onSelect(Func<Void,This> f)

Source

Callback when selection changes.

onTreeEvent

Void onTreeEvent(Str type, Func<Void,TreeEvent> f)

Source

Callback when a event occurs inside a tree node.

rebuild

Void rebuild()

Source

Rebuild tree layout.

refresh

Void refresh()

Source

Refresh tree content.

refreshNode

Void refreshNode(TreeNode node)

Source

Refresh given node.

roots

List<TreeNode> roots := TreeNode[,]

Source

Root nodes for this tree.

sel

Selection sel { private set }

Source

Selection for tree. Index based selection is not supported for Tree.