Breadcrumb
- Sabre Red 360 Software Development Kit Help
- Web Red Apps
- Sabre Red 360 Services
- PublicModalsService
PublicModalsService
Allows creating and showing customized modals containing a React components.
Acquiring PublicModalsService
In order to be used, the PublicModalsService has to be imported:
import {PublicModalsService} from 'sabre-ngv-modals/services/PublicModalService';
Once imported, it can be obtained in a standard way:
const service: PublicModalsService = getService(PublicModalsService);
Available methods
showReactModal |
---|
This method takes as a parameter
|
closeReactModal |
---|
It is used for manual closing previous opened window. Position parameter is optional, can be used in case modal was opened on different layer than default. |
See com.sabre.redapp.example3.web.react.modal sample for implementation.