Skip to main content

DropdownComponent

Extends ValueComponent<string>

Constructor​

constructor(containerEl: HTMLElement);

Properties​

selectEl​

selectEl: HTMLSelectElement

Methods​

setDisabled​

setDisabled(disabled: boolean): this;

addOption​

addOption(value: string, display: string): this;

addOptions​

addOptions(options: Record<string, string>): this;

getValue​

getValue(): string;

setValue​

setValue(value: string): this;

onChange​

onChange(callback: (value: string) => any): this;