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 withtruewhen dialog is shown and withfalsewhen it is hidden, can be used to disable other components while the dialog is showndialogType- one of the followingDialog.YES_NO_CANCEL_TYPEDialog.OK_CANCEL_TYPE
title- title of the dialogmessage- title of the dialogx,y- position where to show the dialogbuttonNames- mapping of any ofYES,NO,OKandCANCELto 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 withtruewhen dialog is shown and withfalsewhen 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 ofOKto alternate name that should be used instead
- callbackFunction func Function that gets called after the dialog concludes.
- params
tab