GlideModalV3 - Client

Provides methods for displaying a content overlay.

This is a fully-featured replacement for GlideWindow and GlideDialogWindow.

GlideModalV3 - get(String id)

Get a GlideModal object by ID.

Table 1. Parameters
Name Type Description
id String The element id of the GlideModal object.
Table 2. Returns
Type Description
GlideModal The object.

GlideModalV3 - getPreference(String name)

Returns the value of the specified property.

Table 3. Parameters
Name Type Description
name String The property name
Table 4. Returns
Type Description
String The specified property's value

GlideModalV3 - GlideModal(String id, Boolean readOnly, Number width)

Creates an instance of the GlideModalV3 class.

Table 5. Parameters
Name Type Description
id String The UI page to load into the modal.
readOnly Boolean When true, hides the close button.
width Number The width in pixels.

GlideModalV3 - render()

Renders the UI page in the modal.

Table 6. Parameters
Name Type Description
None
Table 7. Returns
Type Description
void

GlideModalV3 - renderWithContent(String html)

Display a modal with the specified HTML content.

The renderWithContent() method replaces the render() method, and does not request a UI page to render.

Table 8. Parameters
Name Type Description
html String The HTML content to be shown in the modal.
Table 9. Returns
Type Description
void

GlideModalV3 - renderWithContent(Object html)

Display a modal with the specified HTML content.

The renderWithContent() method replaces the render() method, and does not request a UI page to render.

Table 10. Parameters
Name Type Description
html Object The HTML content to be shown in the modal.
Table 11. Returns
Type Description
void

GlideModalV3 - setPreference(String name, String value)

Set a property that is read by the loaded UI page.

Table 12. Parameters
Name Type Description
name String The property name
value String The property value
Table 13. Returns
Type Description
void

GlideModalV3 - setPreferenceAndReload(Array properties)

Set the properties and reload the modal.

Table 14. Parameters
Name Type Description
properties Array An array of name-value pairs to be set.
Table 15. Returns
Type Description
void

GlideModalV3 - setTitle(String title)

Sets the title of the modal.

Table 16. Parameters
Name Type Description
title String The title to be displayed
Table 17. Returns
Type Description
void

GlideModalV3 - setWidth(Number width)

Set the width in pixels.

The modal is boxed into predefined system sizes.

Table 18. Parameters
Name Type Description
width Number The number of pixels.
Table 19. Returns
Type Description
void

GlideModalV3 - switchView(String newView)

Change the view and reload the modal.

Table 20. Parameters
Name Type Description
newView String The view to use.
Table 21. Returns
Type Description
void