dialog.Alert Class
Alert dialog. This component has by default one button "OK" and will fire an "ok" event when this button is clicked
Constructor
dialog.Alert
(
-
config
Parameters:
-
config
Object
Example:
new ludo.dialog.Alert(
{ html: 'Well done! You solved this puzzle. Click OK to load next' }
listeners : {
'ok' : this.loadNextPuzzle.bind(this)
}
});
will display a dialog in default size with a listener attached to the "OK" button. When clicked it will call the loadNextPuzzle method of the object creating the alert dialog.