Modal Window Operations
Using an external application, you can open a modal window or pop-up window. Modal
and pop-up window operations work on ModalWindowContext
and also in the Tab
context.
The differences between modal and pop-up windows are:
- You can create only one modal. You can, however, create any number of pop-up windows.
- You can't interact with modals, but you can with pop-up windows.
Note: You can perform the modal window operation on a specific tab by providing the
browser tab ID to get the tab context. If browser tab ID isn't given for getting tab
context, the opener page context of MCA floating tool bar window will be the default
tab context. Modal window operations are supported only in browser Tab's tabContext
only, not supported in MSI Tabs tab context.
You can get the ModalWindowContext
by calling the
getModalWindowContext
API provided in UEF provider object as shown
here:
getModalWindowContext(): Promise<IModalWindowContext>;
And here's how you can access ModelWindowContext:
const uiEventsFrameworkInstance: IUiEventsFrameworkProvider = await CX_SVC_UI_EVENTS_FRAMEWORK.uiEventsFramework.initialize('appname', 'v1');
const modalWindowContext:IModalWindowContext = await getModalWindowContext();
UEF supports four ModalWindow actions:
Note: All the model window operations work with global context and tab
context.