@umbraco-cms/backoffice

    Class UmbClassState<T>

    UmbClassState

    • This state can hold class instance which has a equal method to compare in coming instances for changes.

    Type Parameters

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    _subject: BehaviorSubject<T>

    Accessors

    • get value(): T

      Returns T

      Observable that

      • Holds the current data of this state.
      const myState = new UmbArrayState('Hello world');
      console.log("Value is: ", myState.value);

    Methods

    • Function

      asObservable

      Returns Observable<T>

      Observable that the State casts to.

      • Creates a new Observable with this State as the source. Observe this to subscribe to its value and future changes.
      const myState = new UmbArrayState('Hello world');

      this.observe(myState, (latestStateValue) => console.log("Value is: ", latestStateValue));
    • Function

      getValue

      Returns T

      The current data of this state.

      • Provides the current data of this state.
      const myState = new UmbArrayState('Hello world');
      console.log("Value is: ", myState.value);
    MMNEPVFCICPMFPCPTTAAATR