extjs4 - Extjs. Close popup window by click not in window -


i have popup window, not modal. how can close window click on other part of page (not in window)?

something this:

function closewin(e, t) {     var el = win.getel();      if (!(el.dom === t || el.contains(t))) {         ext.getbody().un('click', closewin);         win.close();     } }  ext.getbody().on('click', closewin); 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -