Appframe Knowledge Base

1 hits

How to prompt user with a short message

//Display notification (click the notification text to close)
af.controls.notify('Mail sent!');
// notify returns a function which you can call at a later point to close the notification

//Display notification for a certain duration
setTimeout(af.controls.notify('This message will be displayed for 3 seconds.'), 3000);

components web · Perma link post comment Posted by: Øystein Kaldestad (12-apr-2013)