The selection state of the tree.
Whether a single or multiple of a parent's child items can be expanded.
single-branch-expand
Determines the size of the component.
since v4.5.0. Use the --ig-size
CSS custom property instead.
Whether clicking over nodes will change their expanded state or not.
toggle-node-on-click
Static
stylesStatic
Readonly
tagReturns all of the tree's items.
Collapses all of the passed items. If no items are passed, collapses ALL items.
Deselect all items if the items collection is empty. Otherwise, deselect the items in the items collection.
Expands all of the passed items. If no items are passed, expands ALL items.
Select all items if the items collection is empty. Otherwise, select the items in the items collection.
Static
register
The tree allows users to represent hierarchical data in a tree-view structure, maintaining parent-child relationships, as well as to define static tree-view structure without a corresponding data model.
Element
igc-tree
Slot
Fires
igcSelection - Emitted when item selection is changing, before the selection completes.
Fires
igcItemCollapsed - Emitted when tree item is collapsed.
Fires
igcItemCollapsing - Emitted when tree item is about to collapse.
Fires
igcItemExpanded - Emitted when tree item is expanded.
Fires
igcItemExpanding - Emitted when tree item is about to expand.
Fires
igcItemActivated - Emitted when the tree's
active
item changes.