Hosanna UI API v1.30.2-next
    Preparing search index...

    Interface IObservable

    Interface representing an observable object that supports observation of its fields.

    interface IObservable {
        _oid?: string;
        observe(
            field: string,
            observer: IObserver.IObserver,
            callback: IObserverCallback,
            options?: IObserverOptions,
        ): void;
        unobserve(field: string, observer: IObserver.IObserver): void;
        unobserveAll(): void;
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown

      Index signature for additional properties.

    Index

    Properties

    _oid?: string

    Optional unique object identifier for the observable.

    Methods

    • Unregisters an observer from a specific field.

      Parameters

      • field: string

        The field to stop observing.

      • observer: IObserver.IObserver

        The observer instance to remove.

      Returns void

    • Unregisters all observers from all fields.

      Returns void