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
@param {String} dialogTitle Dialog title. @param {String} dialogMessage Dialog message. @param {String...} buttonsText variable arguments of button texts.. @return {string} pressed button or null if closed by escape key
Parameters:
dialogTitle string dialogMessage string buttonsText string... (optional)
Returns: string
showInfoDialog(dialogTitle,dialogMessage,buttonsText)
Shows an info dialog with the specified title, message and a customizable set of buttons.
@example
@param {String} dialogTitle Dialog title. @param {String} dialogMessage Dialog message. @param {String...} buttonsText variable arguments of button texts..
Parameters:
dialogTitle string dialogMessage string (optional) buttonsText string... (optional)
Returns: string
showInputDialog(dialogTitle,dialogMessage,initialValue,inputType)
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.
@example
@param {String} dialogTitle Dialog title. @param {String} dialogMessage Dialog message. @param {String} initialValue @param {String} inputType the type of the input field, one of: color, date, datetime-local, email, month, number, password, tel, text, time, url, week @return {String}
Parameters:
dialogTitle string (optional) dialogMessage string (optional) initialValue string (optional) inputType string (optional)
Returns: string
showQuestionDialog(dialogTitle,dialogMessage,buttonsText)
Shows a question dialog with the specified title, message and a customizable set of buttons.
@example
@param {String} dialogTitle Dialog title. @param {String} dialogMessage Dialog message. @param {String...} buttonsText variable arguments of button texts.. @return {String}
Parameters:
dialogTitle string dialogMessage string buttonsText string... (optional)
Returns: string
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
@param {String} dialog_title @param {String} msg @param {String...|Array<String>} options
Parameters:
Returns: string
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
@param {String} dialogTitle Dialog title. @param {String} dialogMessage Dialog message. @param {String...} buttonsText variable arguments of button texts. @return pressed button text
Parameters:
dialogTitle string dialogMessage string buttonsText string... (optional)
Returns: string
Last updated