<dy-tree>

A tree component that displays hierarchical data structures. It supports features like expandable nodes, item highlighting, status indicators, and lazy loading of child nodes.

Example

API

Shadow DOM; Extends GemElement

Instance Properties

Property(Attribute) Reactive Type Description
data Yes TreeItem[] @deprecated
items Yes TreeItem[]
highlights Yes any[] value array
itemclick Emitter<MouseEventDetail>
itemcontextmenu Emitter<MouseEventDetail>
expand Emitter<TreeItem>
collapse Emitter<TreeItem>

Instance Methods

Method Type
isExpand (value: any) => boolean
expandToItems (values: any[]) => void
collapseItems (values: any[]) => void
iterateCollapseItem (value: any) => void

Other

Type Value
Event itemclick, itemcontextmenu, expand, collapse
Part item