Skip to content

AppSetting

Extends

Properties

activeTab

activeTab: null | SettingTab

Current active tab of the settings modal


activeTabCloseable

activeTabCloseable: null | CloseableComponent

Closeable component for the active tab


app

app: App

Inherited from

Modal.app


containerEl

containerEl: HTMLElement

Inherited from

Modal.containerEl


contentEl

contentEl: HTMLElement

Inherited from

Modal.contentEl


lastTabId

lastTabId: string

Previously opened tab ID


modalEl

modalEl: HTMLElement

Inherited from

Modal.modalEl


pluginTabs

pluginTabs: SettingTab[]

List of all plugin tabs (core and community, ordered by precedence)


scope

scope: Scope

Inherited from

Modal.scope


settingTabs

settingTabs: SettingTab[]

List of all core settings tabs (editor, files & links, …)


shouldAnimate

shouldAnimate: boolean

Whether the modal should animate

Inherited from

Modal.shouldAnimate


shouldRestoreSelection

shouldRestoreSelection: boolean

Inherited from

Modal.shouldRestoreSelection


titleEl

titleEl: HTMLElement

Inherited from

Modal.titleEl


win

win: null | Window

Reference to the global Window object

Inherited from

Modal.win

Methods

close()

close(): void

Returns

void

Inherited from

Modal.close


onClose()

onClose(): void

Returns

void

Inherited from

Modal.onClose


onOpen()

onOpen(): void

Returns

void

Inherited from

Modal.onOpen


open()

open(): void

Returns

void

Inherited from

Modal.open


openTabById()

openTabById(id)

openTabById(id): HotkeysSettingTab

Parameters

id: "hotkeys"

Returns

HotkeysSettingTab

openTabById(id)

openTabById(id): SettingTab

Open a specific tab by ID

Parameters

id: string

ID of the tab to open

Returns

SettingTab


setContent()

setContent(content): this

Parameters

content: string | DocumentFragment

Returns

this

Inherited from

Modal.setContent


setTitle()

setTitle(title): this

Parameters

title: string

Returns

this

Inherited from

Modal.setTitle