DropdownComponent
Extends
ValueComponent
<string
>
Constructors
new DropdownComponent()
new DropdownComponent(
containerEl
):DropdownComponent
Parameters
• containerEl: HTMLElement
Returns
Overrides
Properties
disabled
disabled:
boolean
Inherited from
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
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
setValue()
setValue(
value
):this
Parameters
• value: string
Returns
this
Overrides
then()
then(
cb
):this
Facilitates chaining
Parameters
• cb
Returns
this