Autohide an alert
I want to auto hide an alert after 3 seconds. I have tried:
setTimeout(function()
{
pop.hide();
}, 3000);
There does not appear to be a hide parameter according to the api docs. anybody got any ideas?
2 Answers
-
Accepted Answer
In this instance I would not use an Alert. I would create a View and add it to the current window, then remove it when your timeout fires. Make sense?
-
Yes thanks, I had not thought of that. Obviously!