search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Changing message duration depending on the message "type"

Asked by Naomi
4 years ago.

Hi,

We're using DayPilot message to display messages. I found there is a global setting messageHideAfter but I'd like more granular support if possible. I need to set duration for error messages to be shown longer than "success" type of messages.

Is it possible to do something like this?

Thanks in advance.

Comment posted by Naomi
4 years ago.

What is funny, that the first reference is to my own message and I asked that same question 6 months ago (and of course, completely forgot about it since then). Today I was showing a demo to my colleague and saw the necessity of this feature again.

Answer posted by Dan Letecky [DayPilot]
4 years ago.

Yes, this is possible. You can specify the delay using the "options" parameter of the message() method:

dp.message("Welcome!", {delay: 5000});

See also:
https://api.daypilot.org/daypilot-scheduler-message/

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.