GlideDialogWindow - Client (deprecated)
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- API reference
The GlideDialogWindow API provides methods for displaying a dialog in the current window and frame.
Use these methods in scripts anywhere that you can use a client-side JavaScript. These methods are most often called from a UI action with the Client check box selected.
GlideDialogWindow - GlideDialogWindow(String id, Boolean readOnly, Number width, Number height)
Provides methods for displaying a dialog in the current window and frame.
Use these methods in scripts anywhere that you can use a client-side JavaScript. These methods are most often called from a UI Action with the Client check box selected.
Type | Description |
---|---|
void |
Example
GlideDialogWindow - adjustBodySize()
Adjusts the body height of a dialog window to be the window height minus the header height.
You typically call this method after calling GlideDialogWindow - setSize().
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
void |
Example
GlideDialogWindow - destroy()
Closes the dialog window.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
void |
Example
GlideDialogWindow - render()
Renders the dialog window.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
void |
Example
GlideDialogWindow - setPreference(String name, String value)
Sets a given window property to a specified value.
Any window property can be set using this method.
Name | Type | Description |
---|---|---|
name | String | The window property to set. |
value | String | The value for the window property. |
Type | Description |
---|---|
void |
Example
GlideDialogWindow - setSize(Number width, Number height)
Sets the size of the dialog window.
If you do not pass width and height parameters, a default size is used.
Name | Type | Description |
---|---|---|
width | Number | The width of the dialog window. |
height | Number | The height of the dialog window. |
Type | Description |
---|---|
void |
Example
GlideDialogWindow - setTitle(String title)
Sets the title of the dialog window.
Name | Type | Description |
---|---|---|
title | String | The title for the current window. |
Type | Description |
---|---|
void |
Example
On this page
- GlideDialogWindow - GlideDialogWindow(String id, Boolean readOnly, Number width, Number
height)
- GlideDialogWindow - adjustBodySize()
- GlideDialogWindow - destroy()
- GlideDialogWindow - render()
- GlideDialogWindow - setPreference(String name, String value)
- GlideDialogWindow - setSize(Number width, Number height)
- GlideDialogWindow - setTitle(String title)