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.
Returns all of the tree's items.
Collapses all of the passed items. If no items are passed, collapses ALL items.
Optional
items: IgcTreeItemComponent[]Deselect all items if the items collection is empty. Otherwise, deselect the items in the items collection.
Optional
items: IgcTreeItemComponent[]Optional
eventInitDict: CustomEventInit<D>Expands all of the passed items. If no items are passed, expands ALL items.
Optional
items: IgcTreeItemComponent[]Select all items if the items collection is empty. Otherwise, select the items in the items collection.
Optional
items: IgcTreeItemComponent[]
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.