You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

This client-side class allows operations with modal objects (such as pop-ups).

s_modal


This class instantiates a new SimpleModal object. Use it in client scripts for the widgets or the UI Actions.


renderPageTemplate (portalPathName, pagePathName)


This method displays content in a modal window according to the set of widgets the portal page template contains.


Parameters:

NameTypeMandatoryDefault Value
portalPathNameStringYN
pagePathNameStringYN


Return:

TypeDescription
VoidThis method does not return a value.


Example:

renderPageTemplate
s_modal.renderPageTemplate('portal', 'page');

renderPagePathTemplate (pagePathName, portalPathName)


This method displays content in a modal window according to the set of widgets the portal page template contains.


Parameter(s):

NameTypeMandatoryDefault Value
pagePathName StringYN
portalPathNameStringYN

Return:

TypeDescription
VoidThis method does not return a value.

Example:

renderPagePathTemplate
s_modal.renderPagePathTemplate('page', 'portal');

renderTemplate(template, style)


This method renders the UI page in the modal window with the template and styles specified.


Parameters:

NameTypeMandatoryDefault Value
htmlStringYN
styleStringN''


Return:

TypeDescription
VoidThis method does not return a value.


Example:

renderTemplate
s_modal.renderTemplate('<div><h1>Hello</h1></div>', 'h1 {color: red}; div {margin: 20px}');

setShow(isShow)


Use this method to specify whether to show or to hide a modal object.


Parameter(s):

NameTypeMandatoryDefault Value
isShowBooleanNtrue


Return:

TypeDescription
VoidThis method does not return a value.


Example:

setShow
s_modal.setShow(false);

setTitle(title)


Use this method to define the title of the modal object.


Parameter(s):

NameTypeMandatoryDefault Value
titleStringYN


Return:

TypeDescription
VoidThis method does not return a value.


Example:

setTitle
s_modal.setTitle('Merging');

setWidth(width)


Use this method to define the width of the modal object in pixels.


Parameter(s):

NameTypeMandatoryDefault Value
widthIntegerYN


Return:

TypeDescription
VoidThis method does not return a value.


Example:

setWidth
s_modal.setWidth(500);

  • No labels