-
12 Oct 2011 12:24 AM #1
After load action for Ext.Window.
After load action for Ext.Window.
Hello!
How can I bind an event to the Ext.Window, which will be executed after fully downloaded Ext.Window?
Code:windows.EditingTemplate = Ext.extend(Ext.Window, { //... ... ... ... ... }
Как я могу привязать событие к окну, которое будет выполняться после его полной загрузки?
-
12 Oct 2011 12:54 AM #2
Windows aren't "downloaded", but maybe the show or afterlayout events are what you want.
-
12 Oct 2011 2:17 AM #3
-
13 Oct 2011 8:09 AM #4
Code:windows.EditingTemplate = Ext.extend(Ext.Window, { listeners: { show: ... } }
- OR -
Code:windows.EditingTemplate = Ext.extend(Ext.Window, { ... } ... someWin = new windows.EditingTemplate(...); // Either this: // someWin.on('show', someFunc, someScope, {single: true}); // or this: someWin.on('show', someFunc, someScope);
Alternatively, you can listen to 'afterrender' instead of "show."
Wes
-
13 Oct 2011 9:17 PM #5


Reply With Quote