Skip to content

DropdownComponent

Extends

Constructors

new DropdownComponent()

new DropdownComponent(containerEl): DropdownComponent

Parameters

containerEl: HTMLElement

Returns

DropdownComponent

Overrides

ValueComponent.constructor

Properties

disabled

disabled: boolean

Inherited from

ValueComponent.disabled


selectEl

selectEl: HTMLSelectElement

Methods

addOption()

addOption(value, display): this

Parameters

value: string

display: string

Returns

this


addOptions()

addOptions(options): this

Parameters

options: Record<string, string>

Returns

this


getValue()

getValue(): string

Returns

string

Overrides

ValueComponent.getValue


onChange()

onChange(callback): this

Parameters

callback

Returns

this


registerOptionListener()

registerOptionListener(listeners, key): this

Parameters

listeners: Record<string, (value?) => string>

key: string

Returns

this

Inherited from

ValueComponent.registerOptionListener


setDisabled()

setDisabled(disabled): this

Parameters

disabled: boolean

Returns

this

Overrides

ValueComponent.setDisabled


setValue()

setValue(value): this

Parameters

value: string

Returns

this

Overrides

ValueComponent.setValue


then()

then(cb): this

Facilitates chaining

Parameters

cb

Returns

this

Inherited from

ValueComponent.then