Today i would like to tell  today how to close all windows currently opend in application.
Using Ext.WindowManager we can get all windows in our app. Using the following code we close all opend windows.
var activeWin = Ext.WindowManager.getActive();
if (activeWin) {
activeWin.close();
}
  
Using Ext.WindowManager we can get all windows in our app. Using the following code we close all opend windows.
var activeWin = Ext.WindowManager.getActive();
if (activeWin) {
activeWin.close();
}
No comments:
Post a Comment