You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 5 Next »
This client-side class allows operations with modal objects (such as pop-ups).
This method instantiates a new SimpleModal object.
This method displays content in a modal window according to the set of widgets the portal page template contains.
Parameter(s):
Return:
Example:
s_modal.renderPageTemplate('portal', 'page');
s_modal.renderPagePathTemplate('page', 'portal');
This method renders the UI page in the modal window with the template and styles specified.
s_modal.renderTemplate('<div><h1>Hello</h1></div>', 'h1 {color: red}; div {margin: 20px}');
Use this method to specify whether to show or to hide the modal object when calling the method.
s_modal.setShow(false);
Use this method to define the title of the modal object.
s_modal.setTitle('Merging');
Use this method to define the width of the modal object in pixels.
s_modal.setWidth(500);