ExtraButtonComponent
Extends
Constructors
new ExtraButtonComponent()
new ExtraButtonComponent(
containerEl
):ExtraButtonComponent
Parameters
• containerEl: HTMLElement
Returns
Overrides
Properties
disabled
disabled:
boolean
Inherited from
extraSettingsEl
extraSettingsEl:
HTMLElement
Methods
onClick()
onClick(
callback
):this
Parameters
• callback
Returns
this
setDisabled()
setDisabled(
disabled
):this
Parameters
• disabled: boolean
Returns
this
Overrides
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