EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 12, 2024, 03:36:51 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
check if window is open
Pages: [
1
]
« previous
next »
Print
Author
Topic: check if window is open (Read 6319 times)
gordis gmbh
Full Member
Posts: 103
check if window is open
«
on:
February 13, 2015, 09:55:01 AM »
Hello,
How can I find if a non-modal window is currently in open state? The window may or may not have the focus.
I am wanting this to update the content the window (by reopening it) if it is already open.
Thanks.
Logged
yamilbracho
Jr. Member
Posts: 64
Re: check if window is open
«
Reply #1 on:
February 13, 2015, 06:33:56 PM »
Just an idea....
Subclass Window class and add an instance variable, say openFlag, then overwrite onOpen, setting openFlag to true and onClose, setting openFlag to false
HTH,
Yamil
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: check if window is open
«
Reply #2 on:
February 13, 2015, 09:04:54 PM »
The 'closed' option can indicate whether the window is closed.
Code:
var opts = $('w').window('options');
console.log(opts.closed);
Logged
gordis gmbh
Full Member
Posts: 103
SOLVED: Re: check if window is open
«
Reply #3 on:
February 16, 2015, 09:12:32 AM »
The 'closed' option solves the issue! Nice to know that this option is updated on window close/open. Thanks very much.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...