Dialogs Plugin
(part of package 'Servoy Default Services')
You can access it in code via: plugins.dialogs
Properties
API
showErrorDialog(dialogTitle,dialogMessage,buttonsText)
Shows an error dialog with the specified title, message and a customizable set of buttons.
Example:
Parameters:
Returns: String Pressed button or null if closed by escape key
showInfoDialog(dialogTitle,dialogMessage,buttonsText)
Shows an info dialog with the specified title, message and a customizable set of buttons.
Example:
Parameters:
Returns: String The text of the button that was pressed by the user, or null if the dialog was closed without selection.
showInputDialog(dialogTitle,dialogMessage,initialValue,inputType)
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.
Example:
Parameters:
{String} [dialogTitle] Dialog title.
{String} [dialogMessage] Dialog message.
{String} [initialValue] The default value pre-filled in the input field when the dialog opens.
{String} [inputType] The type of the input field, one of: color, date, datetime-local, email, month, number, password, tel, text, time, url, week
Returns: String The user-entered value if confirmed, or null if the dialog was canceled.
showQuestionDialog(dialogTitle,dialogMessage,buttonsText)
Shows a question dialog with the specified title, message and a customizable set of buttons.
Example:
Parameters:
Returns: String The text of the button that was pressed by the user.
showSelectDialog(dialogTitle,dialogMessage,options)
Shows a selection dialog, where the user can select an entry from a list of options. Returns the selected entry, or nothing when canceled.
Example:
Parameters:
Returns: String The selected option from the list, or null if the dialog was canceled.
showWarningDialog(dialogTitle,dialogMessage,buttonsText)
Shows a message dialog with the specified title, message and a customizable set of buttons. Returns pressed button text, in case window is closed without pressing any button return value depends on client type.
Example:
Parameters:
Returns: String Pressed button text
Last updated
Was this helpful?