Module Dialog
Module in charge of general purpose GUI dialogs.
Functions
showDialog (params, callbackFunction) | Shows a dialog. |
showErrorDialog (params, callbackFunction) | Shows an error dialog. |
Functions
- showDialog (params, callbackFunction)
-
Shows a dialog.
Remarks:
-
The callback function is not called if user pressed the Cancel button.
Parameters:
- params
tab
Table of parameters tha can contain the following slots.
visibilityHandler
- function that is called withtrue
when dialog is shown and withfalse
when it is hidden, can be used to disable other components while the dialog is showndialogType
- one of the followingDialog.YES_NO_CANCEL_TYPE
Dialog.OK_CANCEL_TYPE
title
- title of the dialogmessage
- title of the dialogx
,y
- position where to show the dialogbuttonNames
- mapping of any ofYES
,NO
,OK
andCANCEL
to alternate names that should be used instead
- callbackFunction func Function that gets called after the dialog concludes.
- params
tab
- showErrorDialog (params, callbackFunction)
-
Shows an error dialog.
Parameters:
- params
tab
Table of parameters tha can contain the following slots.
visibilityHandler
- function that is called withtrue
when dialog is shown and withfalse
when it is hidden, can be used to disable other components while the dialog is showntitle
- title of the dialogmessage
- title of the dialogx
,y
- position where to show the dialogbuttonNames
- mapping of any ofOK
to alternate name that should be used instead
- callbackFunction func Function that gets called after the dialog concludes.
- params
tab