Documentation - v19.12.0-dev
    Preparing search index...

    Class ValueController<T>Abstract

    Base class for a single reactive setting value: holds a value and its default, runs it through a validation function on change, and emits onChange whenever the value is updated.

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _defaultValue: T
    canReset: boolean
    isValueController: true
    onChange: ViewerSignal<(value: T) => void> = ...

    Signal emitted when the value changes

    saveToLocalStorage: boolean
    showInDevTools: boolean
    tag: string

    Accessors

    • get defaultValue(): T

      Returns T

    • get value(): T

      Returns T

    • set value(newValue: T): void

      Parameters

      • newValue: T

      Returns void

    Methods

    • Returns void