ToggleComponent
Extends
ValueComponent
<boolean
>
Constructors
new ToggleComponent()
new ToggleComponent(
containerEl
):ToggleComponent
Parameters
• containerEl: HTMLElement
Returns
Overrides
Properties
disabled
disabled:
boolean
Inherited from
toggleEl
toggleEl:
HTMLElement
Methods
getValue()
getValue():
boolean
Returns
boolean
Overrides
onChange()
onChange(
callback
):this
Parameters
• callback
Returns
this
onClick()
onClick():
void
Returns
void
registerOptionListener()
registerOptionListener(
listeners
,key
):this
Parameters
• listeners: Record
<string
, (value
?) => boolean
>
• key: string
Returns
this
Inherited from
ValueComponent
.registerOptionListener
setDisabled()
setDisabled(
disabled
):this
Parameters
• disabled: boolean
Returns
this
Overrides
setTooltip()
setTooltip(
tooltip
,options
?):this
Parameters
• tooltip: string
• options?: TooltipOptions
Returns
this
setValue()
setValue(
on
):this
Parameters
• on: boolean
Returns
this
Overrides
then()
then(
cb
):this
Facilitates chaining
Parameters
• cb
Returns
this