Documentation

@kanunilabs/datagrid


@kanunilabs/datagrid / CellLookupEditorSpec

Interface: CellLookupEditorSpec

What the cell editor hands a lookup builder — the Enterprise buildLookupEditor takes it as is.

Properties

allowCustom?

optional allowCustom?: boolean


ariaLabel?

optional ariaLabel?: string


autoFocus?

optional autoFocus?: boolean

Take focus once connected. A cell editor does; row/form fields do not.


columnId?

optional columnId?: string


commitOnPick?

optional commitOnPick?: boolean

Picking an item commits (a cell). False in row/form mode, where only Save ends it.


invalid?

optional invalid?: boolean


matchMode?

optional matchMode?: LookupMatchMode


noMatchText

noMatchText: string


onCancel

onCancel: () => void

Returns

void


onChange

onChange: (value) => void

Parameters

value

unknown

Returns

void


onCommit

onCommit: () => void

Returns

void


onPortalOpen?

optional onPortalOpen?: (close) => void

Parameters

close

() => void

Returns

void


onTab?

optional onTab?: (shiftKey) => void

Parameters

shiftKey

boolean

Returns

void


options

options: readonly LookupItem[]


surfaceClass?

optional surfaceClass?: string


testId?

optional testId?: string


value

value: unknown