Skip to main content

This documentation covers KoliBri - Public UI v2 (LTS). For the latest version, see .

Your opinion matters! Together with you, we want to continuously improve KoliBri. Share your ideas, requests, or suggestions with us – quickly and easily.

Tree Item

Weitere Informationen zum Tree finden Sie auf der .

Properties

PropertyAttributeDescriptionTypeDefault
_active_activeIf set (to true) the tree item is the active one.boolean | undefinedundefined
_href (required)_hrefDefines the target URI of the link.stringundefined
_label (required)_labelDefines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).stringundefined
_open_openOpens/expands the element when truthy, closes/collapses when falsy.boolean | undefinedundefined

Methods

collapse

collapse() => Promise<void>

Collapses the tree item if it has children.

Returns

Type: Promise<void>

expand() => Promise<void>

Expands the tree item if it has children.

Returns

Type: Promise<void>

Focuses the internal link element.

Returns

Type: Promise<void>

isOpen() => Promise<boolean>

Returns whether the tree item is expanded.

Returns

Type: Promise<boolean>