Skip to content

API Reference / @gtkx/components / DropDownDeclarativeProps

Type Alias: DropDownDeclarativeProps<T, S>

DropDownDeclarativeProps<T, S> = object

Defined in: drop-down.d.ts:6

Declarative props for DropDown's backing collection and cell rendering.

Type Parameters

T

T = unknown

S

S = unknown

Properties

items?

optional items?: ItemNode<T>[]

Defined in: drop-down.d.ts:7


onSelectionChanged?

optional onSelectionChanged?: ((id) => void) | null

Defined in: drop-down.d.ts:11


renderHeader?

optional renderHeader?: ((info) => ReactNode) | null

Defined in: drop-down.d.ts:16

Renderer for section headers in the popup list.


renderItem?

optional renderItem?: DropDownItemRenderer<T> | null

Defined in: drop-down.d.ts:12


renderListItem?

optional renderListItem?: DropDownItemRenderer<T> | null

Defined in: drop-down.d.ts:14

Renderer for items in the open popup list, falling back to renderItem when omitted.


sections?

optional sections?: SectionNode<S, T>[]

Defined in: drop-down.d.ts:8


selectedId?

optional selectedId?: string | null

Defined in: drop-down.d.ts:10

Id of the currently selected item, making the selection controlled.

Released under the MPL-2.0 License.