Skip to content

Tree Item

Child component of Tree

API reference

Properties

PropertyAttributeDescriptionTypeDefault
disableddisabledWhen present, interaction is prevented and the component is displayed with lower opacity.booleanfalse
expandedexpandedWhen present, expands the component and its contents.booleanfalse
iconFlipRtlicon-flip-rtlWhen present, 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 present, 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.