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?
optionalitems?:ItemNode<T>[]
Defined in: drop-down.d.ts:7
onSelectionChanged?
optionalonSelectionChanged?: ((id) =>void) |null
Defined in: drop-down.d.ts:11
renderHeader?
optionalrenderHeader?: ((info) =>ReactNode) |null
Defined in: drop-down.d.ts:16
Renderer for section headers in the popup list.
renderItem?
optionalrenderItem?:DropDownItemRenderer<T> |null
Defined in: drop-down.d.ts:12
renderListItem?
optionalrenderListItem?: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?
optionalsections?:SectionNode<S,T>[]
Defined in: drop-down.d.ts:8
selectedId?
optionalselectedId?:string|null
Defined in: drop-down.d.ts:10
Id of the currently selected item, making the selection controlled.