API Docs for: 0.0.2
Show:

dialog.Alert Class

Extends Dialog
Module: Canvas

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:

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.

Item Index