Skip to content

DeclarativePluginSettingTab

API reference uses a reviewed source snapshot. Source links open the published source; unverified line locations are omitted.

Defined in: plugin-settings.ts:50

Compatibility settings tab backed by the same controlled definition as the Workspace Settings surface.

new DeclarativePluginSettingTab(app, plugin, definition): DeclarativePluginSettingTab

Defined in: plugin-settings.ts:55

App

Plugin

WorkspaceSettingsDefinition

DeclarativePluginSettingTab

PluginSettingTab.constructor

readonly app: App

Defined in: settings.svelte.ts:1105

PluginSettingTab.app


containerEl: HTMLElement

Defined in: settings.svelte.ts:1103

Outermost HTML element on the setting tab.

PluginSettingTab.containerEl


readonly plugin: Plugin

Defined in: settings.svelte.ts:1128

PluginSettingTab.plugin

display(): void

Defined in: plugin-settings.ts:64

Called when the settings tab should be rendered.

void

PluginSettingTab.display


hide(): void

Defined in: plugin-settings.ts:83

Hides the contents of the setting tab. Any registered components should be unloaded when the view is hidden. Override this if you need to perform additional cleanup.

void

PluginSettingTab.hide