Skip to main content

ButtonComponent

Extends BaseComponent

Constructor#

constructor(containerEl: HTMLElement);

Properties#

buttonEl#

buttonEl: HTMLButtonElement

Methods#

setDisabled#

setDisabled(disabled: boolean): this;

setCta#

setCta(): this;

removeCta#

removeCta(): this;

setWarning#

setWarning(): this;

setTooltip#

setTooltip(tooltip: string): this;

setButtonText#

setButtonText(name: string): this;

setIcon#

setIcon(icon: string): this;

setClass#

setClass(cls: string): this;

onClick#

onClick(callback: (evt: MouseEvent) => any): this;