openModal
This function places a request to open a modal over the current hosting page
Syntax
import messageHandler from '@vcita/intandem-app-com';
// ...initialize the handler
const modalParams={modalName:ModalName.AppMarket}
// Or in order to open a specific app page within the app market
const modalParams={modalName:ModalName.AppMarket,appCodeName:"quickbooks"}
messageHandler.openModal(modalParams).then(result => {
console.log('The modal result was', result);
});
Parameters
modalName
(String): The name of the modal- * init object _8 (Object)_ : An object with params required to initialize the modal
Available modals
Name | Description | payload (modalParams) |
---|---|---|
App Market | Open the app market modal | {modalName:ModalName.AppMarket} |
App Market [AppInfo] | Open a specific app page within the app market modal | {modalName:ModalName.AppMarket,appCodeName:"quickbooks"} |
Updated about 2 months ago