ludo.dialog.Confirm

ludo.dialog.


new ludo.dialog.Confirm(config)

Standard confirm dialog with default "OK" and "Cancel" buttons

Parameters:
Name Type Description
config Object
Source:
Example
new ludo.dialog.Confirm({
 		html : 'Do you want to quit',
 		buttons:[
 			{
 				value:'Yes,'type':'form.Button',width:60
 			},
 			{
 				value:'No,'type':'form.Button',width:60
 			}
 		],
 		listeners:{
 			'yes':this.quit.bind(this)
 		}
 	});
  will create a confirm dialog with two buttons, "Yes" and "No". When click on "Yes", the dialog will be
 closed and disposed and the quit method of the object creating the dialog will be called. On click on "No"
 the dialog will be closed and disposed(it's default behavior on button click) and the nothing else will happen.

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