Compatibility
This plugin is supported in the Smart Client only
Method Summery | |
---|---|
String | #showErrorDialog(dialog_title, msg, button1, [button2], [buttonN]) Shows a message dialog with the specified title, message and a customizable set of buttons. |
String | #showInfoDialog(dialog_title, msg, button1, [button2], [buttonN]) Shows a message dialog with the specified title, message and a customizable set of buttons. |
String | #showInputDialog(dialog_title, msg, [initialValue]) Shows an input dialog where the user can enter data. |
String | #showQuestionDialog(dialog_title, msg, button1, [button2], [buttonN]) Shows a message dialog with the specified title, message and a customizable set of buttons. |
String | #showSelectDialog(dialog_title, msg, optionArray/option1, [option2], [optionN]) Shows a selection dialog, where the user can select an entry from a list of options. |
String | #showWarningDialog(dialog_title, msg, button1, [button2], [buttonN]) Shows a message dialog with the specified title, message and a customizable set of buttons. |
Method Details |
---|
showErrorDialog |
String showErrorDialog (dialog_title, msg, button1, [button2], [buttonN]) |
Shows a message dialog with the specified title, message and a customizable set of buttons. |
Parameters dialog_title msg button1 [button2] [buttonN] |
Returns String |
Sample//show dialog var thePressedButton = plugins.dialogs.showErrorDialog('Title', 'Value not allowed','OK'); |
showInfoDialog |
String showInfoDialog (dialog_title, msg, button1, [button2], [buttonN]) |
Shows a message dialog with the specified title, message and a customizable set of buttons. |
Parameters dialog_title msg button1 [button2] [buttonN] |
Returns String |
Sample//show dialog var thePressedButton = plugins.dialogs.showInfoDialog('Title', 'Value not allowed','OK'); |
showInputDialog |
String showInputDialog (dialog_title, msg, [initialValue]) |
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled. |
Parameters dialog_title msg [initialValue] |
Returns String |
Sample//show input dialog ,returns nothing when canceled var typedInput = plugins.dialogs.showInputDialog('Specify','Your name'); |
showQuestionDialog |
String showQuestionDialog (dialog_title, msg, button1, [button2], [buttonN]) |
Shows a message dialog with the specified title, message and a customizable set of buttons. |
Parameters dialog_title msg button1 [button2] [buttonN] |
Returns String |
Sample//show dialog var thePressedButton = plugins.dialogs.showQuestionDialog('Title', 'Value not allowed','OK'); |
showSelectDialog |
String showSelectDialog (dialog_title, msg, optionArray/option1, [option2], [optionN]) |
Shows a selection dialog, where the user can select an entry from a list of options. Returns the selected entry, or nothing when canceled. |
Parameters dialog_title msg optionArray/option1 [option2] [optionN] |
Returns String |
Sample//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')); |
showWarningDialog |
String showWarningDialog (dialog_title, msg, button1, [button2], [buttonN]) |
Shows a message dialog with the specified title, message and a customizable set of buttons. |
Parameters dialog_title msg button1 [button2] [buttonN] |
Returns String |
Sample//show dialog var thePressedButton = plugins.dialogs.showWarningDialog('Title', 'Value not allowed','OK'); |