new ludo.dialog.Dialog(config)
Basic dialog class and base class for all other dialogs. This class extends
ludo.Window.
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
object |
Properties
|
- Source:
Fires:
- ludo.dialog.Dialog#buttonName buttonName will be the lowercase value of the button without spaces.event: Example: Button "Yes" will fire a "yes" event.
Example
new ludo.dialog.Dialog({ html : 'Do you want to save your work?', buttonConfig : 'YesNoCancel' listeners : { 'yes' : function(){ this.saveWork() }, 'no' : function() { this.discardWork() } } });
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