IAreaService
Allows 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. Config Parameteres:
type BannerType = 'Info' | 'Warning' | 'Success' | 'Error';
Returns: |
getCurrentPcc |
---|
Returns current PCC in work Area. Returns: |
clear |
---|
Clears current work area. Returns: |
Example
You can see example usage in com.sabre.redapp.example3.web.customworkflow sample.