Skip to main content

Setting

Constructor

constructor(containerEl: HTMLElement);

Properties

settingEl

settingEl: HTMLElement

infoEl

infoEl: HTMLElement

nameEl

nameEl: HTMLElement

descEl

descEl: HTMLElement

controlEl

controlEl: HTMLElement

components

components: BaseComponent[]

Methods

setName

setName(name: string | DocumentFragment): this;

setDesc

setDesc(desc: string | DocumentFragment): this;

setClass

setClass(cls: string): this;

setTooltip

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

setHeading

setHeading(): this;

setDisabled

setDisabled(disabled: boolean): this;

addButton

addButton(cb: (component: ButtonComponent) => any): this;

addExtraButton

addExtraButton(cb: (component: ExtraButtonComponent) => any): this;

addToggle

addToggle(cb: (component: ToggleComponent) => any): this;

addText

addText(cb: (component: TextComponent) => any): this;

addSearch

addSearch(cb: (component: SearchComponent) => any): this;

addTextArea

addTextArea(cb: (component: TextAreaComponent) => any): this;

addMomentFormat

addMomentFormat(cb: (component: MomentFormatComponent) => any): this;

addDropdown

addDropdown(cb: (component: DropdownComponent) => any): this;

addColorPicker

addColorPicker(cb: (component: ColorComponent) => any): this;

addSlider

addSlider(cb: (component: SliderComponent) => any): this;

then

then(cb: (setting: this) => any): this;

Facilitates chaining

clear

clear(): this;