Dialogs Plugin
Last updated
Was this helpful?
Last updated
Was this helpful?
(part of package '')
You can access it in code via: plugins.dialogs
Shows an error dialog with the specified title, message and a customizable set of buttons.
Example:
Parameters:
{} dialogTitle Dialog title.
{} dialogMessage Dialog message.
{} [buttonsText] Variable arguments of button texts..
Returns: Pressed button or null if closed by escape key
Shows an info dialog with the specified title, message and a customizable set of buttons.
Example:
Parameters:
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.
Example:
Parameters:
Shows a question dialog with the specified title, message and a customizable set of buttons.
Example:
Parameters:
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:
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:
{} dialogTitle Dialog title.
{} [dialogMessage] Dialog message.
{} [buttonsText] Variable arguments of button texts..
Returns: The text of the button that was pressed by the user, or null if the dialog was closed without selection.
{} [dialogTitle] Dialog title.
{} [dialogMessage] Dialog message.
{} [initialValue] The default value pre-filled in the input field when the dialog opens.
{} [inputType] The type of the input field, one of: color, date, datetime-local, email, month, number, password, tel, text, time, url, week
Returns: The user-entered value if confirmed, or null if the dialog was canceled.
{} dialogTitle Dialog title.
{} dialogMessage Dialog message.
{} [buttonsText] Variable arguments of button texts..
Returns: The text of the button that was pressed by the user.
{} dialogTitle The title of the selection dialog.
{} dialogMessage The message or prompt displayed in the dialog.
{} options A list of selectable options, either as individual strings or an array of strings.
Returns: The selected option from the list, or null if the dialog was canceled.
{} dialogTitle Dialog title.
{} dialogMessage Dialog message.
{} [buttonsText] Variable arguments of button texts.
Returns: Pressed button text