Child component of List

API reference

Properties

PropertyAttributeDescriptionTypeDefault
closableclosable

When true, displays a close button in the component.

booleanfalse
closedclosed

When true, hides the component.

booleanfalse
descriptiondescription

Specifies a description for the component. Displays below the label.

string
disableddisabled

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

booleanfalse
dragDisableddrag-disabled

When true, the item is not draggable.

booleanfalse
expandedexpanded

When true, expands the component and its contents.

booleanfalse
iconEndicon-end

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

IconName
iconFlipRtlicon-flip-rtl

Displays the iconStart and/or iconEnd as 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, displays above the description.

string
messageOverrides

Overrides individual strings used by the component.

Record<string, unknown> | undefined
metadata

Provides additional metadata to the component. Primary use is for a filter on the parent calcite-list.

Record<string, unknown>
openopen
deprecatedin v3.1.0, removal target v6.0.0 - Use the expanded property instead.

When true, the item is open to show child components.

booleanfalse
selectedselected

When true and the parent calcite-list's selectionMode is "single", "single-persist"', or "multiple"`, the component is selected.

booleanfalse
sortHandleOpensort-handle-open

When true, displays and positions the sort handle.

booleanfalse
topLayerDisabledtop-layer-disabled

When true and the component is open, disables top layer placement.

Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.

booleanfalse
unavailableunavailable

When true, the component's content displays as inactive.

booleanfalse
valuevalue

The component's value.

any

Slots

NameDescription
default (unnamed)

A slot for adding calcite-list, calcite-list-item and calcite-list-item-group elements.

actions-start

A slot for adding actionable calcite-action elements before the content of the component.

content-start

A slot for adding non-actionable elements before the component's label and description.

content

A slot for adding non-actionable, centered content in place of the component's label and description.

content-end

A slot for adding non-actionable elements after the component's label and description.

actions-end

A slot for adding actionable calcite-action elements after the component's content.

content-bottom

A slot for adding content below the component's label and description.

Styles

NameDescription
--calcite-list-background-color-hover

Specifies the component's background color when hovered.

--calcite-list-background-color-press

Specifies the component's background color when pressed.

--calcite-list-background-color

Specifies the component's background color.

--calcite-list-border-color

Specifies the component's border color.

--calcite-list-content-text-color

Specifies the content color.

--calcite-list-description-text-color

Specifies the description color.

--calcite-list-icon-color

Specifies the component's icon color.

--calcite-list-label-text-color

Specifies the label color.

--calcite-list-selection-border-color

Specifies the component's selection border color.

Events

NameDescriptionBehavior
calciteListItemClose

Fires when the close button is clicked.

bubblescomposed
calciteListItemCollapse

Fires when the component's content area is collapsed.

bubblescomposed
calciteListItemExpand

Fires when the component's content area is expanded.

bubblescomposed
calciteListItemSelect

Fires when the component is selected.

bubblescomposed
calciteListItemSortHandleBeforeClose

Fires when the sort handle is requested to be closed and before the closing transition begins.

bubblescomposed
calciteListItemSortHandleBeforeOpen

Fires when the sort handle is added to the DOM but not rendered, and before the opening transition begins.

bubblescomposed
calciteListItemSortHandleClose

Fires when the sort handle is closed and animation is complete.

bubblescomposed
calciteListItemSortHandleOpen

Fires when the sort handle is open and animation is complete.

bubblescomposed
calciteListItemToggle

Fires when the open button is clicked.

bubblescomposed

Methods

NameDescriptionSignature
componentOnReady

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

componentOnReady(): Promise<this>
setFocus

Sets focus on the component.

setFocus(options?: FocusOptions): Promise<void>

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