Skip to content

Tree Item

Child component of Tree

API reference

Properties

PropertyAttributeDescriptionTypeDefault
disableddisabledWhen true, interaction is prevented and the component is displayed with lower opacity.booleanfalse
expandedexpandedWhen true, expands the component and its contents.booleanfalse
iconFlipRtlicon-flip-rtlWhen true, the icon will be flipped when the element direction is right-to-left ("rtl")."both" | "end" | "start"
iconStarticon-startSpecifies an icon to display at the start of the component.string
labellabelAccessible name for the component.string
selectedselectedWhen true, the component is selected.booleanfalse

Slots

NameDescription
default (unnamed)A slot for adding text.
childrenA slot for adding nested calcite-tree elements.
actions-endA slot for adding actions to the end of the component. It is recommended to use two or fewer actions.

Methods

NameDescriptionSignature
componentOnReadyCreate a promise that resolves once component is fully loaded.componentOnReady(): Promise<void>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.