Skip to content

Latest commit

 

History

History
199 lines (100 loc) · 4.38 KB

ComboboxOptions.md

File metadata and controls

199 lines (100 loc) · 4.38 KB

@serenity-is/corelib / ComboboxOptions

Interface: ComboboxOptions<TSource>

Type Parameters

TSource = any

Properties

allowClear?

optional allowClear: boolean

Defined in

src/ui/editors/combobox.ts:30


arbitraryValues?

optional arbitraryValues: boolean

Allow arbitrary values for items

Defined in

src/ui/editors/combobox.ts:34


createSearchChoice()?

optional createSearchChoice: (s) => ComboboxItem<TSource>

Parameters

s

string

Returns

ComboboxItem<TSource>

Defined in

src/ui/editors/combobox.ts:31


element?

optional element: HTMLInputElement | HTMLSelectElement | Element[]

Defined in

src/ui/editors/combobox.ts:32


formatResult()?

optional formatResult: (p1) => ComboboxFormatResult

Parameters

p1

ComboboxItem<TSource>

Returns

ComboboxFormatResult

Defined in

src/ui/editors/combobox.ts:36


formatSelection()?

optional formatSelection: (p1) => ComboboxFormatResult

Parameters

p1

ComboboxItem<TSource>

Returns

ComboboxFormatResult

Defined in

src/ui/editors/combobox.ts:35


minimumResultsForSearch?

optional minimumResultsForSearch: number

Defined in

src/ui/editors/combobox.ts:37


multiple?

optional multiple: boolean

Defined in

src/ui/editors/combobox.ts:38


pageSize?

optional pageSize: number

Page size to use while loading or displaying results

Defined in

src/ui/editors/combobox.ts:40


placeholder?

optional placeholder: string

Defined in

src/ui/editors/combobox.ts:41


providerOptions()?

optional providerOptions: (type, opt) => any

Callback to get options specific to the combobox provider type

Parameters

type

"select2"

opt

ComboboxOptions<any>

Returns

any

Defined in

src/ui/editors/combobox.ts:43


search()?

optional search: (query) => ComboboxSearchResult<ComboboxItem<TSource>> | PromiseLike<ComboboxSearchResult<ComboboxItem<TSource>>>

Parameters

query

ComboboxSearchQuery

Returns

ComboboxSearchResult<ComboboxItem<TSource>> | PromiseLike<ComboboxSearchResult<ComboboxItem<TSource>>>

Defined in

src/ui/editors/combobox.ts:44


typeDelay?

optional typeDelay: number

Type delay for searching, default is 200

Defined in

src/ui/editors/combobox.ts:46