Child pages
  • dialogs

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
{div:style=}
Wiki Markup
Div
styledisplay:none

DO

NOT

EDIT

THE

CONTENT

OF

THIS

PAGE

DIRECTLY

(EXCEPT

INSIDE

THE

DIV

BELOW

WITH

ID=DESCRIPTION),

UNLESS

YOU

KNOW

WHAT

YOU'RE

DOING.


THE

STRUCTURE

OF

THE

CONTENT

IS

VITAL

IN

BEING

ABLE

TO

AUTO

UPDATE

THE

CONTENT

THROUGH

THE

DOC

GENERATOR.

\\ \\ Enter additional information related to this



Enter additional information related to this 'class'

inside

the

\

{div}

macro

with

'id=description'

{div} {div:id=description}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|https://www.servoyforge.net] 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|https://www.servoyforge.net/projects/mod-dialog].{div}\\ {table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[String]{td}{td}[#showErrorDialog]\(dialogTitle, dialogMessage, buttonsText) Shows a message dialog with the specified title, message and a customizable set of buttons.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showInfoDialog]\(dialogTitle, dialogMessage, buttonsText) Shows a message dialog with the specified title, message and a customizable set of buttons.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showInputDialog]\() Shows an input dialog where the user can enter data.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showInputDialog]\(dialog_title) Shows an input dialog where the user can enter data.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showInputDialog]\(dialog_title, msg) Shows an input dialog where the user can enter data.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showInputDialog]\(dialog_title, msg, initialValue) Shows an input dialog where the user can enter data.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showQuestionDialog]\(dialogTitle, dialogMessage) Shows a message dialog with the specified title, message and a customizable set of buttons.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showQuestionDialog]\(dialogTitle, dialogMessage, buttonsText) Shows a message dialog with the specified title, message and a customizable set of buttons.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showSelectDialog]\(dialog_title, msg, optionArray) Shows a selection dialog, where the user can select an entry from a list of options.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showSelectDialog]\(dialog_title, msg, options) Shows a selection dialog, where the user can select an entry from a list of options.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showWarningDialog]\(dialogTitle, dialogMessage) Shows a message dialog with the specified title, message and a customizable set of buttons.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showWarningDialog]\(dialogTitle, dialogMessage, buttonsText) Shows a message dialog with the specified title, message and a customizable set of buttons.{td}{tr}{tbody}{table}\\ {table:id=function|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=showErrorDialog-String_String_StringArray}{tr:id=name}{td}h6.showErrorDialog{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}showErrorDialog{span}{span}\(dialogTitle, dialogMessage, buttonsText){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Shows a message dialog with the specified title, message and a customizable set of buttons.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} dialogTitle -- Dialog title. \{[String]} dialogMessage -- Dialog message. \{[String]...} buttonsText -- Array of button texts. {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}

Div
iddescription

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
id
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#showErrorDialog(dialogTitle, dialogMessage, buttonsText)
Shows a message dialog with the specified title, message and a customizable set of buttons.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#showInfoDialog(dialogTitle, dialogMessage, buttonsText)
Shows a message dialog with the specified title, message and a customizable set of buttons.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#showInputDialog()
Shows an input dialog where the user can enter data.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#showInputDialog(dialog_title)
Shows an input dialog where the user can enter data.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#showInputDialog(dialog_title, msg)
Shows an input dialog where the user can enter data.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
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)
String
Table Cell (td)
#showQuestionDialog(dialogTitle, dialogMessage)
Shows a message dialog with the specified title, message and a customizable set of buttons.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#showQuestionDialog(dialogTitle, dialogMessage, buttonsText)
Shows a message dialog with the specified title, message and a customizable set of buttons.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#showSelectDialog(dialog_title, msg, optionArray)
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)
String
Table Cell (td)
#showSelectDialog(dialog_title, msg, options)
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)
String
Table Cell (td)
#showWarningDialog(dialogTitle, dialogMessage)
Shows a message dialog with the specified title, message and a customizable set of buttons.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
String
Table Cell (td)
#showWarningDialog(dialogTitle, dialogMessage, buttonsText)
Shows a message dialog with the specified title, message and a customizable set of buttons.

HTML Table
idfunction
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Method Details
Table Body (tbody)
idshowErrorDialog-String_String_StringArray
Table Row (tr)
idname
Table Cell (td)
showErrorDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
showErrorDialog
Span
(dialogTitle, dialogMessage, buttonsText)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Shows a message dialog with the specified title, message and a customizable set of buttons.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} dialogTitle – Dialog title.
{String} dialogMessage – Dialog message.
{String...} buttonsText – Array of button texts.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//show dialog
var thePressedButton = plugins.dialogs.showErrorDialog('Title', 'Value not allowed','OK');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowInfoDialog-String_String_StringArray
}{
Table Row (tr)
:
id
=
name
}{td}h6.showInfoDialog{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
showInfoDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
showInfoDialog
{span}{span}\
Span
(dialogTitle,
dialogMessage,
buttonsText)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Shows a message dialog with the specified title, message and a customizable set of buttons.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} dialogTitle -- Dialog title. \{[String]} dialogMessage -- Dialog message. \{[String]...} buttonsText -- Array of button texts. {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Shows a message dialog with the specified title, message and a customizable set of buttons.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} dialogTitle – Dialog title.
{String} dialogMessage – Dialog message.
{String...} buttonsText – Array of button texts.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//show dialog
var thePressedButton = plugins.dialogs.showInfoDialog('Title', 'Value not allowed','OK');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showInputDialog}{tr:id=name}{td}h6.showInputDialog{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}showInputDialog{span}{span}\(){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowInputDialog
Table Row (tr)
idname
Table Cell (td)
showInputDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
showInputDialog
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//show input dialog ,returns nothing when canceled 
var typedInput = plugins.dialogs.showInputDialog('Specify','Your name');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showInputDialog-String}{tr:id=name}{td}h6.showInputDialog{td}{tr}{tr:id=sig}{td}{span:style=margin-right: 5px;}[String]{span}{span:style=font-weight: bold;}showInputDialog{span}{span}\(dialog_title){span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} dialog_title {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowInputDialog-String
Table Row (tr)
idname
Table Cell (td)
showInputDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
showInputDialog
Span
(dialog_title)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} dialog_title
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//show input dialog ,returns nothing when canceled 
var typedInput = plugins.dialogs.showInputDialog('Specify','Your name');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowInputDialog-String_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.showInputDialog{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
showInputDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
showInputDialog
{span}{span}\
Span
(dialog_title,
msg)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} dialog_title \{[String]} msg {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} dialog_title
{String} msg
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//show input dialog ,returns nothing when canceled 
var typedInput = plugins.dialogs.showInputDialog('Specify','Your name');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowInputDialog-String_String_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.showInputDialog{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
showInputDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
showInputDialog
{span}{span}\
Span
(dialog_title,
msg,
initialValue)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} dialog_title \{[String]} msg \{[String]} initialValue {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} dialog_title
{String} msg
{String} initialValue
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//show input dialog ,returns nothing when canceled 
var typedInput = plugins.dialogs.showInputDialog('Specify','Your name');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowQuestionDialog-String_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.showQuestionDialog{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
showQuestionDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
showQuestionDialog
{span}{span}\
Span
(dialogTitle,
dialogMessage)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Shows a message dialog with the specified title, message and a customizable set of buttons.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} dialogTitle -- Dialog title. \{[String]} dialogMessage -- Dialog message. {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Shows a message dialog with the specified title, message and a customizable set of buttons.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} dialogTitle – Dialog title.
{String} dialogMessage – Dialog message.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//show dialog
var thePressedButton = plugins.dialogs.showQuestionDialog('Title', 'Value not allowed','OK');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowQuestionDialog-String_String_StringArray
}{
Table Row (tr)
:
id
=
name
}{td}h6.showQuestionDialog{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
showQuestionDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
showQuestionDialog
{span}{span}\
Span
(dialogTitle,
dialogMessage,
buttonsText)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Shows a message dialog with the specified title, message and a customizable set of buttons.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} dialogTitle -- Dialog title. \{[String]} dialogMessage -- Dialog message. \{[String]...} buttonsText -- Array of button texts. {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Shows a message dialog with the specified title, message and a customizable set of buttons.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} dialogTitle – Dialog title.
{String} dialogMessage – Dialog message.
{String...} buttonsText – Array of button texts.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//show dialog
var thePressedButton = plugins.dialogs.showQuestionDialog('Title', 'Value not allowed','OK');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowSelectDialog-String_String_ObjectArray
}{
Table Row (tr)
:
id
=
name
}{td}h6.showSelectDialog{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
showSelectDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
showSelectDialog
{span}{span}\
Span
(dialog_title,
msg,
optionArray)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Shows a selection dialog, where the user can select an entry from a list of options. Returns the selected entry, or nothing when canceled.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} dialog_title \{[String]} msg \{[Object]\[]} optionArray {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} dialog_title
{String} msg
{Object[]} optionArray
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//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'));
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowSelectDialog-String_String_StringArray
}{
Table Row (tr)
:
id
=
name
}{td}h6.showSelectDialog{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
showSelectDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
showSelectDialog
{span}{span}\
Span
(dialog_title,
msg,
options)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Shows a selection dialog, where the user can select an entry from a list of options. Returns the selected entry, or nothing when canceled.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} dialog_title \{[String]} msg \{[String]...} options {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} dialog_title
{String} msg
{String...} options
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//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'));
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowWarningDialog-String_String
}{
Table Row (tr)
:
id
=
name
}{td}h6.showWarningDialog{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
showWarningDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
showWarningDialog
{span}{span}\
Span
(dialogTitle,
dialogMessage)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Shows a message dialog with the specified title, message and a customizable set of buttons.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} dialogTitle -- Dialog title. \{[String]} dialogMessage -- Dialog message. {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Shows a message dialog with the specified title, message and a customizable set of buttons.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} dialogTitle – Dialog title.
{String} dialogMessage – Dialog message.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//show dialog
var thePressedButton = plugins.dialogs.showWarningDialog('Title', 'Value not allowed');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshowWarningDialog-String_String_StringArray
}{
Table Row (tr)
:
id
=
name
}{td}h6.showWarningDialog{td}{tr}{tr:id=sig}{td}{span:style=
Table Cell (td)
showWarningDialog
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right:
5px;
}[
String
]{span}{span:style=
Span
stylefont-weight:
bold;
}
showWarningDialog
{span}{span}\
Span
(dialogTitle,
dialogMessage,
buttonsText)
{span}{td}{tr}{tr:id=des}{td}{div:class=sIndent}Shows a message dialog with the specified title, message and a customizable set of buttons.{div}{td}{tr}{tr:id=prs}{td}*Parameters*\\{div:class=sIndent}\{[String]} dialogTitle -- Dialog title. \{[String]} dialogMessage -- Dialog message. \{[String]...} buttonsText -- Array of button texts. {div}{td}{tr}{tr:id=ret}{td}*Returns*\\{div:class=sIndent}[String]{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Shows a message dialog with the specified title, message and a customizable set of buttons.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} dialogTitle – Dialog title.
{String} dialogMessage – Dialog message.
{String...} buttonsText – Array of button texts.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

//show dialog
var thePressedButton = plugins.dialogs.showWarningDialog('Title', 'Value not allowed','OK');
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}
Table Row (tr)
classlastDetailRow
Table Cell (td)