Skip to content

ButtonComponent

Extends

Constructors

new ButtonComponent()

new ButtonComponent(containerEl): ButtonComponent

Parameters

containerEl: HTMLElement

Returns

ButtonComponent

Overrides

BaseComponent.constructor

Properties

buttonEl

buttonEl: HTMLButtonElement


disabled

disabled: boolean

Inherited from

BaseComponent.disabled

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

BaseComponent.setDisabled


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

Inherited from

BaseComponent.then