libs/core/frame/src/services/taly-frame-top-area.service.ts
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 }
No results matching.
Properties |
Methods |
|
| networkErrorMessage$ |
Type : unknown
|
Default value : this._networkErrorMessage$.asObservable()
|
| Public Abstract getNotificationVisibility$ | ||||||
getNotificationVisibility$(visibleIf: string | undefined)
|
||||||
|
Parameters :
Returns :
Observable<boolean>
|
| Public Abstract getObservableForStateKey$ | ||||||
getObservableForStateKey$(stateKey: string)
|
||||||
|
Parameters :
Returns :
Observable<any>
|
| Public Abstract getSidebarVisibility$ | ||||||
getSidebarVisibility$(visibleIf: string | undefined)
|
||||||
|
Parameters :
Returns :
Observable<boolean | undefined>
|
| Public Abstract getTabVisibility$ | ||||||
getTabVisibility$(visibleIf: string | undefined)
|
||||||
|
Parameters :
Returns :
Observable<boolean>
|
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>;
public abstract getSidebarVisibility$(
visibleIf: string | undefined
): Observable<boolean | undefined>;
public abstract getTabVisibility$(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();
}