Skip to content
On this page

ToggleComponent

继承自 ValueComponent<boolean>

Constructor

ts
constructor(containerEl: HTMLElement);

Properties

toggleEl

ts
toggleEl: HTMLElement

Methods

setDisabled

ts
setDisabled(disabled: boolean): this;

getValue

ts
getValue(): boolean;

setValue

ts
setValue(on: boolean): this;

setTooltip

ts
setTooltip(tooltip: string, options?: TooltipOptions): this;

onClick

ts
onClick(): void;

onChange

ts
onChange(callback: (value: boolean) => any): this;