Breadcrumb
IAreaService
Allows to to manipulate work Area.
Currently service supports:
-
banners,

-
getting current PCC.
Acquiring service
In order to obtain IAreaService and use it, you need to import it:
import {IAreaService} from 'sabre-ngv-app/app/services/impl/IAreaService';
Then obtain the service inside your source as below:
const areaService: IAreaService = getService(IAreaService);
Available methods
Currently available methods:
getActiveArea |
---|
Returns active Area. Returns: |
showBanner |
---|
Allows to show a banner in work Area. Type Parameteres: type BannerType = 'Info' | 'Warning' | 'Success' | 'Error'; text - Text to be displayed on the banner (passing an empty string may result in a text that does not make sense, the text is capitalised) Returns: |
getCurrentPcc |
---|
Returns current PCC in work Area. Returns: |
clear |
---|
Clears current work area. Returns: |
See com.sabre.redapp.example3.web.customworkflow sample for implementation.