Class IgcTreeComponent

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
  • Renders the tree items inside default 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.

Hierarchy

  • SizableInterface<this> & EventEmitterInterface<IgcTreeEventMap, this> & LitElement<this>
    • IgcTreeComponent

Index

Constructors

Properties

dir: Direction = 'auto'

The direction attribute of the control.

selection: "none" | "multiple" | "cascade" = 'none'

The selection state of the tree.

singleBranchExpand: boolean = false

Whether a single or multiple of a parent's child items can be expanded.

size: "small" | "medium" | "large"

Determines the size of the component.

Accessors

Methods

  • connectedCallback(): void
  • Returns void

  • emitEvent<K, D>(type: K, eventInitDict?: CustomEventInit<D>): boolean