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

    A setting taking one of its options: another value throws a RangeError.

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    defaultValue: T

    The value at first and after reset.

    description: string

    What it changes, for the user (see ValueControllerOptions.description).

    hidden: boolean

    Whether an interface leaves it out (see ValueControllerOptions.hidden).

    onChange: Signal<(value: T) => void> = ...

    Emitted with the new value when it changes; not when the value set is the current one.

    options: readonly T[]

    The values it takes.

    Accessors

    • get value(): T

      The current value.

      Returns T

    • set value(value: T): void

      Sets the value, validated first (see validate).

      Parameters

      • value: T

      Returns void

    Methods

    • Sets the value back to defaultValue.

      Returns void

    • The value kept for value: value itself by default; a subclass corrects it or throws a RangeError.

      Parameters

      • value: T

      Returns T