Constructors
EventDataDialogDefinition()
Methods
addCheckbox(String,String)
Adds a checkbox field with given label.addCheckbox(String,String,Bool)
Adds a checkbox field with given label. Possible to set field as mandatory.addDate(String,String)
Adds a Date field with given label.addDate(String,String,Date)
Adds a Date field with given label and a default value.addDate(String,String,Date,String,Bool)
Adds a Date field with given label, default value, placeholder text. Possible to set field as mandatory.addDateTime(String,String)
Adds a DateTime field with given label.addDateTime(String,String,DateTime)
Adds a DateTime field with given label and a default value.addDateTime(String,String,DateTime,String,Bool)
Adds a DateTime field with given label, default value, placeholder text. Possible to set field as mandatory.addField(EventDataDialogField)
Adds a field to dialog.addFloat(String,String)
Adds a Float field with given label.addFloat(String,String,Float)
Adds a Float field with given label and a default value.addFloat(String,String,Float,String,Bool)
Adds a Float field with given label, default value, placeholder text. Possible to set field as mandatory.addInteger(String,String)
Adds a Integer field with given label.addInteger(String,String,Integer)
Adds a Integer field with given label and a default value.addInteger(String,String,Integer,String,Bool)
Adds a Integer field with given label, default value, placeholder text. Possible to set field as mandatory.addLabel(String,String)
Adds a label field.addList(String,String,String)
Adds a list field from listName with the given label.addList(String,String,String,Integer)
Adds a list field from listname with given label and default value.addList(String,String,String,Integer,String,Bool)
Adds a list field from listname with given label, default value, placeholder text. Possible to set field as mandatory.addList(String,String,String[],String,String,Bool)
Adds a list field from manually created list with given label, default value, placeholder text. Possible to set field as mandatory.addList(String,String,Map,String,String,Bool)
Adds a list field from manually created list with key-value pair with given label, default value, placeholder text. Possible to set field as mandatory.addList(String,String,String,Integer,String,Bool,String,Bool)
Adds a list field from listname with given label, default value, placeholder text. Possible to set additionalInfo supported by list and force list to be flat. Possible to set field as mandatory.addText(String,String)
Adds a text field with given label.addText(String,String,String)
Adds a text field with given label and a default value.addText(String,String,String,String,Bool)
Adds a text field with given label, default value, placeholder text. Possible to set field as mandatory.addTextarea(String,String,String,String,Bool,Integer,Integer)
Adds a textarea field with given label, default value, placeholder text, rows and columns. Possible to set field as mandatory.addTime(String,String)
Adds a Time field with given label.addTime(String,String,Time)
Adds a Time field with given label and a default value.addTime(String,String,Time,String,Bool)
Adds a Time field with given label, default value, placeholder text. Possible to set field as mandatory.addTimeSpan(String,String)
Adds a TimeSpan field with given label.addTimeSpan(String,String,Integer)
Adds a TimeSpan field with given label and a default value.addTimeSpan(String,String,Integer,String,Bool)
Adds a TimeSpan field with given label, default value, placeholder text. Possible to set field as mandatory.addTimeSpan(String,String,Integer,String,Bool,Bool,Bool,Bool,Bool,Bool)
Adds a TimeSpan field with given label, default value, placeholder text and which units to display. Possible to set field as mandatory.removeField(String)
Remove field with given name.getBlockExecutionOnCancel()
Returns true if execution is blocked on cancel.setBlockExecutionOnCancel(Bool)
Set if execution should be blocked on cancel.getHeight()
Get height set on dialog.setHeight(Integer)
Set height of dialog.getIcon()
Returns type of icon on dialogSupports:
- info
- warn
- error
- question
setIcon(String)
Sets icon type on dialog.Supports:
- info
- warn
- error
- question
getMarkdown()
Returns body text with Markdown syntax.setMarkdown(String)
Sets body text using Markdown syntax on dialog. If specified this will take precedence over setText().<b>NOTE:</b> This is not full Markdown but a “lite” version.
-
- Produces a <h1>
- Newline in current paragraph - adds a <br>
- Blank line - starts a new paragraph. Multiple blank lines in a row will create empty paragraphs.
- Leading * - replaced with •
- Whitelisted tags are preserved (b, i, a, span, p).
- Whitelisted attributes are preserved (class). To get a section styled differently, you may use a span element with a custom class name.
getPrefix()
Returns prefix set for fields dialogsetPrefix(String)
Sets prefix for fields in dialog.getText()
Returns body text on dialogsetText(String)
Sets body text on dialog.getTitle()
Returns title on dialogsetTitle(String)
Sets title on dialog.getType()
Returns what type of dialogSupports:
- yesno
- okcancel
setType(String)
Sets type of dialog.Supports:
- yesno
- okcancel