BindOptions<T>
Options for PluginSettingsTabBase.bind.
Import:
import type { BindOptions } from '@mnaoumov/obsidian-lib/plugin/plugin-settings-tab';Signature:
export interface BindOptions<T>Properties
| Property | Type | Description |
|---|---|---|
| onChanged? | (newValue: ReadonlyDeep<T>, oldValue: ReadonlyDeep<T>) => Promisable<void> | A callback function that is called when the value of the component changes. |
| shouldResetSettingWhenComponentIsEmpty? | boolean | Whether to reset the setting when the component value is empty. Applicable only to text-based components. |
| shouldShowPlaceholderForDefaultValues? | boolean | Whether to show the placeholder for default values. Applicable only to text-based components. |
| shouldShowValidationMessage? | boolean | Whether to show the validation message when the component value is invalid. |
Links to this page: