monster.ui.alert() method generates a customizable dialog window with three distinctive styles.
monster.ui.alert([type, ]content[, callback, options]);
Define the style of the dialog window generated. It can take three different values (
info). If this parameter is not specified, the dialog window will be created with the value set to
Text that will be displayed inside the generated dialog window.
Function executed when the dialog window is closed.
Let you override default options that can be found on the jQuery UI Dialog Widget page. The only options that cannot be overridden are
hide and the
This method returns the generated dialog window as a jQuery object.
The dialog window generated by the
monster.ui.dialog() contains a title bar and a content area. It can be moved and closed with the
x icon by the user.
This method is calling
monster.ui.dialog() using a specific template to build the dialog window. By default, three different styles can be applied to the dialog by changing the
The goal of this method is to display basic messages to the user, for example if an API sends back an error, it can be formatted and passed as the
content parameter of this method to display a user friendly error.
- Create an alert dialog window without indicating a type
type parameter is not specified when calling the method, the dialog window will take the
info style by default.