jeudi 17 avril 2014

Close a window

Hello,

How can i close a window ?


I use a button with handler but i have an error :




TypeError: bindings[key].destroy is not a function

bindings[key].destroy();

(ext/src/Component.js)



My code of my view which extend 'Ext.window.Window' :

Code:



buttons: [{
text: __('CLOSE_BUTTON'),
handler: function(){
// Ext.getCmp('windowC').close();
this.previousNode('window').close();
},
cls: 'button-green'
}]

My code are wrong ?

Thank you for your help





Aucun commentaire:

Enregistrer un commentaire