EOrgChart Org chart
Examples
Organization
Collapsed branch
Multiple selection
Checkbox cascade
Custom node
Properties
modelvarRoot node or roots of an organization tree with key, label, and children.
[]nodeHeightrealHeight of each organization node.
56nodeWidthrealWidth of each organization node.
150selectedKeysvarKeys of the selected organization nodes.
[]verticalGaprealVertical spacing between hierarchy levels.
48collapsedKeysvarArray of collapsed organization node keys.
[]horizontalGaprealHorizontal spacing between organization nodes.
20nodeDelegateComponentCustom organization node; read parent.node.
nullselectionModestringOrg chart selection mode: none, single, multiple, checkbox.
"single"layoutvarRead onlyComputed node positions, connectors and dimensions.
buildLayout()errorStringstringRead onlyModel validation error code; empty for a valid model.
layout.errorSignals
nodeClicked(var node)Emitted when an organization node is clicked; node is its data.
selectionChanged(var keys)Emitted when selected nodes change; keys contains their identifiers.
toggled(var key, bool collapsed)Emitted when a node expands or collapses; key identifies the node and collapsed is its collapsed state.
Methods
toggle(key)Toggle the expanded or selected state; pass the target identifier when required.
select(key)Select the item identified by the given index or key.