Extjs4 ,如何偵測是否點在pop up window 的外面
參考:
https://stackoverflow.com/questions/12424263/how-to-close-modal-window-extjs-when-clicking-on-mask
我個人是比較喜歡寫在"initComponent"之後的寫法
======================
initComponent: function () {
...
...
me.callParent(arguments);
me.mon(Ext.getBody(), 'click', function(el, e){
alert('click outside!!');
}, me, { delegate: '.x-mask' });
}
=====================大家加油吧
0 個意見:
張貼留言
訂閱 張貼留言 [Atom]
<< 首頁