Skip to main content

Tree

shadow

The Tree element allows hierarchical display of data in a tree structure. It is used to visualize categories, file systems or navigation structures. Tree contains wje-tree as the main container and wje-tree-item as the individual tree entries. Items can contain children, creating a nested hierarchy.

Basic use

Multiple

TO DO complete tree and tree item docs

Attributes and Properties

multiple

DescriptionAn attribute that determines whether multiple sections can be expanded at the same time.
Attributemultiple
Typeboolean
Default0

Index

DescriptionAn attribute that sets the initial index of the extended section.
AttributeIndex
Typenumber
Default1000

Events

NameDescription
wje-accordion-item:openIt is emitted when the accordion item is opened.

Methods

collapseAll

DescriptionCollapses all accordion items except the one specified as the exception.
Signature(exception: HTMLElement) => Promise<void>

getAccordions

DescriptionSearch for all Accordion components within a group.
SignaturegetAccordions() => Accordion[]

CSS Shadow Parts

No CSS shadow parts available for this component.

CSS Custom Properties

No CSS custom properties available for this component.

Slots

No slots available for this component.