Skip to content

Latest commit

 

History

History
279 lines (140 loc) · 4.79 KB

Combobox.md

File metadata and controls

279 lines (140 loc) · 4.79 KB

@serenity-is/corelib / Combobox

Class: Combobox<TItem>

Type Parameters

TItem = any

Constructors

new Combobox()

new Combobox<TItem>(opt): Combobox<TItem>

Parameters

opt

ComboboxOptions<any>

Returns

Combobox<TItem>

Defined in

src/ui/editors/combobox.ts:57

Properties

defaults

static defaults: ComboboxOptions<any>

Defined in

src/ui/editors/combobox.ts:52

Accessors

container

Get Signature

get container(): HTMLElement

Returns

HTMLElement

Defined in

src/ui/editors/combobox.ts:247


isMultiple

Get Signature

get isMultiple(): boolean

Returns

boolean

Defined in

src/ui/editors/combobox.ts:263


type

Get Signature

get type(): "select2"

Returns

"select2"

Defined in

src/ui/editors/combobox.ts:253

Methods

abortInitSelection()

abortInitSelection(): void

Returns

void

Defined in

src/ui/editors/combobox.ts:230


abortPendingQuery()

abortPendingQuery(): void

Returns

void

Defined in

src/ui/editors/combobox.ts:217


closeDropdown()

closeDropdown(): void

Returns

void

Defined in

src/ui/editors/combobox.ts:377


dispose()

dispose(): void

Returns

void

Defined in

src/ui/editors/combobox.ts:238


getSelectedItem()

getSelectedItem(): ComboboxItem<any>

Returns

ComboboxItem<any>

Defined in

src/ui/editors/combobox.ts:274


getSelectedItems()

getSelectedItems(): ComboboxItem<any>[]

Returns

ComboboxItem<any>[]

Defined in

src/ui/editors/combobox.ts:284


getValue()

getValue(): string

Returns

string

Defined in

src/ui/editors/combobox.ts:300


getValues()

getValues(): string[]

Returns

string[]

Defined in

src/ui/editors/combobox.ts:316


openDropdown()

openDropdown(): void

Returns

void

Defined in

src/ui/editors/combobox.ts:381


setValue()

setValue(value, triggerChange): void

Parameters

value

string

triggerChange

boolean = false

Returns

void

Defined in

src/ui/editors/combobox.ts:336


setValues()

setValues(value, triggerChange): void

Parameters

value

string[]

triggerChange

boolean = false

Returns

void

Defined in

src/ui/editors/combobox.ts:368


getInstance()

static getInstance(el): Combobox<any>

Parameters

el

Element | ArrayLike<Element>

Returns

Combobox<any>

Defined in

src/ui/editors/combobox.ts:385