Skip to content

ValueComponentWithChangeTracking<T>

A ValueComponent that can track changes.

Import:

import type { ValueComponentWithChangeTracking } from '@mnaoumov/obsidian-lib/setting-components/value-component-with-change-tracking';

Signature:

export interface ValueComponentWithChangeTracking<T> extends ValueComponent<T>

Extends: ValueComponent<T>

Properties

PropertyTypeDescription
onChange(callback: (newValue: T) => void) => thisSets a callback function to be called when the value of the component changes.

Links to this page: