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
| Property | Type | Description |
|---|---|---|
| propertyName | ConditionalKeys<PluginSettings, UIValue> | The property of the plugin settings to bind to. |
| shouldResetSettingWhenComponentIsEmpty? | boolean | Whether to reset the setting when the component value is empty. Applicable only to text-based components. (Inherited from BindOptions) |
| shouldShowPlaceholderForDefaultValues? | boolean | Whether to show the placeholder for default values. Applicable only to text-based components. (Inherited from BindOptions) |
| shouldShowValidationMessage? | boolean | Whether to show the validation message when the component value is invalid. (Inherited from BindOptions) |
| valueComponent | TValueComponent & ValueComponentWithChangeTracking<UIValue> | The value component to bind. |
Methods
| Method | Returns | Description |
|---|---|---|
| onChanged(newValue, oldValue) | Promisable<void> | A callback function that is called when the value of the component changes. (Inherited from BindOptions) |