Methods
showDialogPopup(title, text, scroll, actionType, actionListener)
Show a standard dialog. The actionType decides wich dialog options are aviable.
Parameters:
Name | Type | Description |
---|---|---|
title |
String | The Title of the dialog. Can be null. |
text |
String | The text wich should be shown in the dialog. |
scroll |
boolean | Boolean - true, if the dialog should be in the middle of of the screen by scrolling. |
actionType |
ActionTypeClass | The type of dialog. You can choose the following types:
- ActionType.YES_NO_DIALOG - ActionType.YES_NO_CANCEL_DIALOG - ActionType.OK_CANCEL_DIALOG - ActionType.OK_POPUP The default dialog is the ActionType.OK_POPUP. The return value of the standard popup is always 0. |
actionListener |
function | A function wich is processed after hiding the dialog. |
showPopup(title, text, scroll, actionText, action)
Show standard popup.
Parameters:
Name | Type | Description |
---|---|---|
title |
String | The Title of the popup. Can be null. |
text |
String | The text wich should be shown in the popup. |
scroll |
boolean | True, if the popup should be in the middle of the screen by scrolling. |
actionText |
String | The text of the action (button title). DEFAULT = 'Ok' |
action |
function | The action that will processed by click on the button of the popup (onClick function). DEFAULT = _StandardActionCommand.hidePopup() |