In ExtJs how to handle such scenario Window A has grid A which routes to pop up window B after clicking on hyperlink A. window B has a panel with another hyperlink B which render some data on Window A.
after clicking hyperlink B data gets properly rendered on window A. But window B ( from where hyperlink got clicked) does not get destroy.
How to destroy window B once hyperlink renders data.
答案 0 :(得分:0)
我看不出你的问题在哪里。
var window = Ext.create('Ext.window.Window', {width:200, height:200});
window.show();
console.log(window.getWidth());
window.close();
console.log(window.getWidth()); // throws error because window is destroyed
https://fiddle.sencha.com/#view/editor&fiddle/21id
如果您想更明确地这样做,您可以随时在窗口上调用destroy
。