Child component of Tree

API reference

Properties

PropertyAttributeDescriptionTypeDefault
disableddisabled

When true, interaction is prevented and the component is displayed with lower opacity.

booleanfalse
expandedexpanded

When true, expands the component and its contents.

booleanfalse
iconFlipRtlicon-flip-rtl

When true, the icon will be flipped when the element direction is right-to-left ("rtl").

FlipContext
iconStarticon-start

Specifies an icon to display at the start of the component.

IconName
labellabel

Specifies an accessible label for the component.

string
selectedselected

When true, the component is selected.

booleanfalse

Slots

NameDescription
default (unnamed)

A slot for adding text.

children

A slot for adding nested calcite-tree elements.

actions-end

A slot for adding actions to the end of the component. It is recommended to use two or fewer actions.

Styles

NameDescription
--calcite-tree-text-color

Specifies the component's text color.

--calcite-tree-text-color-selected

When 'selected', specifies the component's text color.

--calcite-tree-selected-icon-color

Specifies the component's selection icon color.

Methods

NameDescriptionSignature
componentOnReady

Creates a promise that resolves once the component is fully loaded.

componentOnReady(): Promise<this>

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