EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jwilliquor on March 17, 2020, 11:20:55 AM



Title: Get List of Open Windows
Post by: jwilliquor on March 17, 2020, 11:20:55 AM
Is there a way to get a list of open windows?  I need to look through the open windows to see if a window is already open or not.

Thanks
Justin


Title: Re: Get List of Open Windows
Post by: jarry on March 18, 2020, 01:34:28 AM
Call this code to see if the window is open.
Code:
var opts = $('#w').window('options');
if (opts.closed){
  console.log('The window is closed');
} else {
  console.log('The window is open');
}


Title: Re: Get List of Open Windows
Post by: jwilliquor on March 23, 2020, 02:17:34 PM
Jarry

That is only part of what i'm looking for.  The other part is a list of ID's of window objects themselves that exist.

Thanks
Justin