Opening modal window
This is used to open the modal window. It return a Promise with WidgetId.
Snippet
sdk.dispatch("zs-modal", {
url,
options: {width, height}
}).then(widgetId=>{});
- URL: URL for the model window.
- options: we can give the width,height positions.
- width: should be in 'px' like "300px".
- height: should be in 'px' like "500px".
- widgetId: Id of the created widget instance.