Close alert window

0 views
Skip to first unread message

Brendon

unread,
Oct 4, 2010, 7:17:09 PM10/4/10
to Qutensil
How can i close the alert window? Trying to do custom buttons but
cannot find an example to close the current window. Thanks

wonderingwout

unread,
Oct 8, 2010, 2:47:59 AM10/8/10
to Qutensil
Hi Brendon,

Since the Q.Alert class is inheriting from the window class you can
simply use the hide() funciton.
You wight need to force it to hide by passing true as the fist
argument:

var win = new Q.Alert(...);
...
win.hide(true);

That should do the trick.

You can also add 'closeButton' in the options like so:

var win = new Q.Alert('title', 'message', { closeButton: 'left' });


Good luck!
Wout
Reply all
Reply to author
Forward
0 new messages