0

ZK how to close popup window automatically without clicking any button?

asked 2013-12-31 10:11:33 +0800

psingh gravatar image psingh flag of India
963 8

I am showing some notifications in a popup window and I want to close that window after few seconds automatically. Is there any way to close that window without clicking any button?

Thanks in advance!!

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-12-31 11:43:10 +0800

chillworld gravatar image chillworld flag of Belgium
5367 4 9
https://github.com/chillw...

Of course is this possible.

Almost everything is possible, you just need to know how. For the instance I can't give code until next week but here are a few possible suggestions.

If you call the popup from a controller or vm, set a timeout (I suggest create a thread that waits x seconds and then close the popup or set the visibility false). If you make the popup window with init final you can call it in the subclass of the thread.(normal java behavior)

If its from the zul you open the notification, I suggest create a custom notification that extends the notification you use and in the init you can do the same thing as above.

Greetz chill.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-12-31 10:11:33 +0800

Seen: 25 times

Last updated: Dec 31 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More