ludo.dialog.Dialog

ludo.dialog.


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
Name Type Description
modal Boolean

True to make the window modal, default: true

autoRemove Boolean

True to destroy the dialog on close. Will remove the dialog from the DOM. Default: true

buttonConfig String

Camel case string config for buttons. example: YesNoCancel for three buttons labeled "Yes", "No" and "Cancel"

autoHideOnBtnClick. Boolean

True to automatically hide the dialog on click on one of the buttons.

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