开发者

EXTJS Values between windows

开发者 https://www.devze.com 2023-01-12 17:33 出处:网络
to modify an Item, I开发者_StackOverflow社区 call a function that shows me a modal window, I give to this function the value to change, and I want that after closing the modifiying window, return the

to modify an Item, I开发者_StackOverflow社区 call a function that shows me a modal window, I give to this function the value to change, and I want that after closing the modifiying window, return the value to the first one. how to do ?


Please provide some code. Access your parent window this way :

var parentWin = Ext.getCmp('parent_window_id');

If parent window has a function say callMeNow(value) to pass the value you want after closing, then call it when child window is closed this way:

var childWin = Ext.getCmp('child_window_id');

childWin.on('beforeclose', function(){
    parentWin.callMeNow(valueToBePassed);
}, this);
0

精彩评论

暂无评论...
验证码 换一张
取 消