API Docs for: 0.0.2
Show:

dialog.Confirm Class

Extends Dialog
Module: Canvas

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

Constructor

dialog.Confirm

(
  • config
)

Parameters:

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.

Item Index