Hidden |
---|
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE |
The Dialogs plugin provides a few convenient functions to quickly show a dialog. It supports the following types of dialogs:
- Error dialog
- Info dialog
- Input dialog
- Question dialog
- Select dialog
- Warning dialog
Currently this plugin is only supported in the Smart Client. ServoyForge hosts a drop-in replacement for the Dialogs plugin adds support for the same type of Dialogs and this plugin, but then equally supported in both the Smart and Web Client. This Dialogs module can be found here.
HTML Table |
---|
|
Table Row (tr) |
---|
| Table Head (th) |
---|
| Method Summary |
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#showErrorDialog(dialog_title, msg, [...button]) Shows a message dialog with the specified title, message and a customizable set of buttons. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#showInfoDialog(dialog_title, msg, [...button]) Shows a message dialog with the specified title, message and a customizable set of buttons. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#showInputDialog(dialog_title, msg, [initialValue]) Shows an input dialog where the user can enter data. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#showQuestionDialog(dialog_title, msg, [...button]) Shows a message dialog with the specified title, message and a customizable set of buttons. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#showSelectDialog(dialog_title, msg, optionArray/option1, [...option]) Shows a selection dialog, where the user can select an entry from a list of options. |
|
|
Table Body (tbody) |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
#showWarningDialog(dialog_title, msg, [...button]) Shows a message dialog with the specified title, message and a customizable set of buttons. |
|
|
|
HTML Table |
---|
id | function |
---|
class | servoy sDetail |
---|
|
Table Row (tr) |
---|
| Table Head (th) |
---|
| Method Details |
|
Table Body (tbody) |
---|
id | showErrorDialog |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
showErrorDialog |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| String |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| showErrorDialog |
Span |
---|
| (dialog_title, msg, [...button]) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Shows a message dialog with the specified title, message and a customizable set of buttons. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters dialog_title msg [...button] |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
//show dialog
var thePressedButton = plugins.dialogs.showErrorDialog('Title', 'Value not allowed','OK');
|
|
|
|
|
Table Body (tbody) |
---|
id | showInfoDialog |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
showInfoDialog |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| String |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| showInfoDialog |
Span |
---|
| (dialog_title, msg, [...button]) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Shows a message dialog with the specified title, message and a customizable set of buttons. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters dialog_title msg [...button] |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
//show dialog
var thePressedButton = plugins.dialogs.showInfoDialog('Title', 'Value not allowed','OK');
|
|
|
|
|
Table Body (tbody) |
---|
id | showInputDialog |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| String |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| showInputDialog |
Span |
---|
| (dialog_title, msg, [initialValue]) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters dialog_title msg [initialValue] |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
//show input dialog ,returns nothing when canceled
var typedInput = plugins.dialogs.showInputDialog('Specify','Your name');
|
|
|
|
|
Table Body (tbody) |
---|
id | showQuestionDialog |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
showQuestionDialog |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| String |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| showQuestionDialog |
Span |
---|
| (dialog_title, msg, [...button]) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Shows a message dialog with the specified title, message and a customizable set of buttons. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters dialog_title msg [...button] |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
//show dialog
var thePressedButton = plugins.dialogs.showQuestionDialog('Title', 'Value not allowed','OK');
|
|
|
|
|
Table Body (tbody) |
---|
id | showSelectDialog |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
showSelectDialog |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| String |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| showSelectDialog |
Span |
---|
| (dialog_title, msg, optionArray/option1, [...option]) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Shows a selection dialog, where the user can select an entry from a list of options. Returns the selected entry, or nothing when canceled. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters dialog_title msg optionArray/option1 [...option] |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
//show select,returns nothing when canceled
var selectedValue = plugins.dialogs.showSelectDialog('Select','please select a name','jan','johan','sebastiaan');
//also possible to pass array with options
//var selectedValue = plugins.dialogs.showSelectDialog('Select','please select a name', new Array('jan','johan','sebastiaan'));
|
|
|
|
|
Table Body (tbody) |
---|
id | showWarningDialog |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
showWarningDialog |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| String |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| showWarningDialog |
Span |
---|
| (dialog_title, msg, [...button]) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Shows a message dialog with the specified title, message and a customizable set of buttons. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters dialog_title msg [...button] |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
//show dialog
var thePressedButton = plugins.dialogs.showWarningDialog('Title', 'Value not allowed','OK');
|
|
|
|
|
|