Opening modal window

This is used to open the modal window. It return a Promise with WidgetId.


sdk.dispatch("zs-modal", {
	options: {width, height}
  • 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.