File

libs/common/frame/src/services/taly-frame-top-area.service.ts

Description

Helper service to integrate our top area in the TALY frame with external systems like PFE.

Best used with an actual implementation like the PfeFrameTopAreaService. Provide it in your app root module.

{ provide: TalyFrameTopAreaService, useClass: PfeFrameTopAreaService }

Index

Properties
Methods

Properties

networkErrorMessage$
Default value : this._networkErrorMessage$.asObservable()

Methods

Public Abstract getNotificationVisibility$
getNotificationVisibility$(visibleIf: string | undefined)
Parameters :
Name Type Optional
visibleIf string | undefined No
Returns : Observable<boolean>
Public Abstract getObservableForStateKey$
getObservableForStateKey$(stateKey: string)
Parameters :
Name Type Optional
stateKey string No
Returns : Observable<any>
import { BehaviorSubject, Observable } from 'rxjs';

/**
 * Helper service to integrate our top area in the TALY frame with external systems like PFE.
 *
 * Best used with an actual implementation like the `PfeFrameTopAreaService`.
 * Provide it in your app root module.
 *
 * {
 *   provide: TalyFrameTopAreaService,
 *   useClass: PfeFrameTopAreaService
 * }
 */
export abstract class TalyFrameTopAreaService {
  public abstract getNotificationVisibility$(visibleIf: string | undefined): Observable<boolean>;
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
  public abstract getObservableForStateKey$(stateKey: string): Observable<any>;
  protected _networkErrorMessage$ = new BehaviorSubject<string | undefined>(undefined);
  networkErrorMessage$ = this._networkErrorMessage$.asObservable();
}

results matching ""

    No results matching ""