Marks the item as the tree's active item.
Get/Set whether the tree item is disabled. Disabled items are ignored for user interactions.
The tree item expansion state.
The tree item label.
The depth of the item, relative to the root.
To be used for load-on-demand scenarios in order to specify whether the item is loading data.
The parent item of the current tree item (if any)
The tree item selection state.
Optional
treeA reference to the tree the item is a part of.
The value entry that the tree item is visualizing. Required for searching through items.
The full path to the tree item, starting from the top-most ancestor.
Returns a collection of child items. If the parameter value is true returns all tree item's direct children, otherwise - only the direct children.
The tree-item component represents a child item of the tree component or another tree item.
Element
igc-tree-item
Slot
Slot
label - Renders the tree item container.
Slot
indicator - Renders the expand indicator container.
Slot
loading - Renders the tree item loading indicator container.
Slot
indentation - Renders the container (by default the space) before the tree item.
Csspart
wrapper - The wrapper for the tree item.
Csspart
selected - Indicates selected state. Applies to
wrapper
.Csspart
focused - Indicates focused state. Applies to
wrapper
.Csspart
active - Indicates an active state. Applies to
wrapper
.Csspart
indicator - The expand indicator of the tree item.
Csspart
label - The tree item content.
Csspart
text - The tree item displayed text.
Csspart
select - The checkbox of the tree item when selection is enabled.