Skip to content

ExtraButtonComponent

Extends

Constructors

new ExtraButtonComponent()

new ExtraButtonComponent(containerEl): ExtraButtonComponent

Parameters

containerEl: HTMLElement

Returns

ExtraButtonComponent

Overrides

BaseComponent.constructor

Properties

disabled

disabled: boolean

Inherited from

BaseComponent.disabled


extraSettingsEl

extraSettingsEl: HTMLElement

Methods

onClick()

onClick(callback): this

Parameters

callback

Returns

this


setDisabled()

setDisabled(disabled): this

Parameters

disabled: boolean

Returns

this

Overrides

BaseComponent.setDisabled


setIcon()

setIcon(icon): this

Parameters

icon: string

ID of the icon, can use any icon loaded with addIcon or from the inbuilt library.

Returns

this

See

The Obsidian icon library includes the Lucide icon library, any icon name from their site will work here.


setTooltip()

setTooltip(tooltip, options?): this

Parameters

tooltip: string

options?: TooltipOptions

Returns

this


then()

then(cb): this

Facilitates chaining

Parameters

cb

Returns

this

Inherited from

BaseComponent.then