ludo.dialog.Alert

ludo.dialog.


new ludo.dialog.Alert(config)

Alert dialog. This component has by default one button "OK" and will fire an
"ok" event when this button is clicked

Parameters:
Name Type Description
config Object
Source:
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.

Extends

Methods


showAt(x, y)

Show window at x and y position

Parameters:
Name Type Description
x Number
y Number
Inherited From:
Source:
Returns:

void


showCentered()

Show window centered on screen

Inherited From:
Source:
Returns:

void