You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 8 Next »
Use this client-side class to manage modal objects, such as pop-up windows.
This class instantiates a new SimpleModal object. Use it in client scripts for the widgets or the UI Actions.
This method displays content in a modal window according to the set of widgets the portal page template contains.
Parameters:
Return:
Example:
s_modal.renderPageTemplate('portal', 'page');
Parameter(s):
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 a modal object.
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);