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' });
}
=====================大家加油吧
沒有留言:
張貼留言