Skip to content

PluginSettingsTabBaseBindParams<PluginSettings, UIValue, TValueComponent>

Params for PluginSettingsTabBase.bind.

Import:

import type { PluginSettingsTabBaseBindParams } from 'obsidian-dev-utils/obsidian/plugin/plugin-settings-tab';

Signature:

export interface PluginSettingsTabBaseBindParams<PluginSettings extends object, UIValue, TValueComponent> extends BindOptions<UIValue>

Extends: BindOptions<UIValue>

Properties

PropertyTypeDescription
propertyNameConditionalKeys<PluginSettings, UIValue>The property of the plugin settings to bind to.
shouldResetSettingWhenComponentIsEmpty?booleanWhether to reset the setting when the component value is empty. Applicable only to text-based components.
(Inherited from BindOptions)
shouldShowPlaceholderForDefaultValues?booleanWhether to show the placeholder for default values. Applicable only to text-based components.
(Inherited from BindOptions)
shouldShowValidationMessage?booleanWhether to show the validation message when the component value is invalid.
(Inherited from BindOptions)
valueComponentTValueComponent & ValueComponentWithChangeTracking<UIValue>The value component to bind.

Methods

MethodReturnsDescription
onChanged(newValue, oldValue)Promisable<void>A callback function that is called when the value of the component changes.
(Inherited from BindOptions)