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, options?: TooltipOptions): this;

setButtonText

setButtonText(name: string): this;

setIcon

setIcon(icon: IconName): this;

setClass

setClass(cls: string): this;

onClick

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