You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 2 Next »
This client-side class allows operation with modal objects (such as pop-ups).
Instantiates a new SimpleModal object.
This method displays content in a modal 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 with the template and styles specified.
s_modal.renderTemplate('<div><h1>Hello</h1></div>', 'h1 {color: red}; div {margin: 20px}');
This method allows specifying whether to show or to hide the modal object when calling the method.
s_modal.setShow(false);
Using this method, you can define the title of the modal object.
s_modal.setTitle('Merging');
Using this method, you can define the width of the modal object in pixels.
s_modal.setWidth(500);