I read API documentation (https://our.umbraco.org/apidocs/ui/#/api/umbraco.services.notificationsService) but I found only that "by default when a notification is added, it is automaticly removed 7 seconds after. This can be changed on add()"
But I didn't found an example on how and where I can set the timeout.
Without having digged too deeply in it, I'm pretty sure it refers to the "sticky" parameter.
This will keep your notification up until the backoffice user manually closes it with no timeout at all.
This also means you need to make a new notification object (not using the success one) - and setting the sticky to true for that notification object. You can still set the type to success of course, so it'll mimic the standard one completely by looks.
How to increase notification message duration
Hi to all,
I need to increase the notification message display time.
In my controller I set this notification message:
I read API documentation (https://our.umbraco.org/apidocs/ui/#/api/umbraco.services.notificationsService) but I found only that "by default when a notification is added, it is automaticly removed 7 seconds after. This can be changed on add()"
But I didn't found an example on how and where I can set the timeout.
Anyone can help me?
Thank you in advance
Adriano
Without having digged too deeply in it, I'm pretty sure it refers to the "sticky" parameter.
This will keep your notification up until the backoffice user manually closes it with no timeout at all.
This also means you need to make a new notification object (not using the success one) - and setting the sticky to true for that notification object. You can still set the type to success of course, so it'll mimic the standard one completely by looks.
I don't think to understand.
What "sticky" parameter?
One example is this:
I hope it's somewhat self-explanatory!
Yeah!!! Sorry but I'm newbie with AngularJs and I'm discovering a new world.
Thank you...I will try it soon and I'll tell you if I succeeded
It works like a charm.
This is a version with localizationService (the "sticky" parameter set to false, disable the "always on" alert message):
Thank you very much!!! ;-)
No worries man, you're asking good questions! Hope it works out. :)
is working on a reply...