@stereograph/teiaviewer - v17.8.0-dev
    Preparing search index...

    Interface ValueControllerOptions<T>

    interface ValueControllerOptions<T> {
        isSavedInLocalStorage?: boolean;
        showInDevTools?: boolean;
        tag?: string;
        validate?: (oldValue: T, newValue: T) => T;
    }

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Properties

    isSavedInLocalStorage?: boolean
    showInDevTools?: boolean
    tag?: string
    validate?: (oldValue: T, newValue: T) => T

    Called before newValue is set. Allows the user to control the newValue. Returns the newValue as is by default.

    Type declaration

      • (oldValue: T, newValue: T): T
      • Parameters

        • oldValue: T
        • newValue: T

        Returns T