Skip to content

@serenity-is/corelib / Select2QueryOptions

Interface: Select2QueryOptions

Defined in: src/ui/editors/select2.tsx:16

Options passed to a Select2 query callback.

Properties

callback()?

optional callback: (data) => void

Defined in: src/ui/editors/select2.tsx:26

Callback invoked with the results.

Parameters

data

Select2Result

Returns

void


context?

optional context: any

Defined in: src/ui/editors/select2.tsx:24

Additional context.


element?

optional element: Select2Element

Defined in: src/ui/editors/select2.tsx:18

The element the query is for.


matcher()?

optional matcher: (term, text, data?) => boolean

Defined in: src/ui/editors/select2.tsx:28

Custom matcher function.

Parameters

term

string

text

string

data?

any

Returns

boolean


page?

optional page: number

Defined in: src/ui/editors/select2.tsx:22

The page number.


term?

optional term: string

Defined in: src/ui/editors/select2.tsx:20

The search term.