messageBox
Displays a modal messagebox with buttons. The function will return when a button is clicked and return the value, if set, otherwise the title of the clicked button
Parameters
messageBoxOptions - A JSON object with messageBox parameters
Example Usages
Return Values
The messageBox function returns a Promise. The Promise is resolved when a button is pressed in the SmartMessageBox (jQuery plugin) dialog, and it is rejected if no button is pressed or if an error occurs during the process. The resolved value is the value property of the pressed button (if defined), or the title of the pressed button if value is not defined.
Last updated
Was this helpful?