ButtonComponent
Extends
Constructors
new ButtonComponent()
new ButtonComponent(
containerEl
):ButtonComponent
Parameters
• containerEl: HTMLElement
Returns
Overrides
Properties
buttonEl
buttonEl:
HTMLButtonElement
disabled
disabled:
boolean
Inherited from
Methods
onClick()
onClick(
callback
):this
Parameters
• callback
Returns
this
removeCta()
removeCta():
this
Returns
this
setButtonText()
setButtonText(
name
):this
Parameters
• name: string
Returns
this
setClass()
setClass(
cls
):this
Parameters
• cls: string
Returns
this
setCta()
setCta():
this
Returns
this
setDisabled()
setDisabled(
disabled
):this
Parameters
• disabled: boolean
Returns
this
Overrides
setIcon()
setIcon(
icon
):this
Parameters
• icon: string
Returns
this
setTooltip()
setTooltip(
tooltip
,options
?):this
Parameters
• tooltip: string
• options?: TooltipOptions
Returns
this
setWarning()
setWarning():
this
Returns
this
then()
then(
cb
):this
Facilitates chaining
Parameters
• cb
Returns
this