The message() method shows a message using the integrated message bar.
Declaration
DayPilot.Scheduler.message(text, options)Parameters
text(string) - message text or HTML contentoptions(object) - additional options
The options object supports the following properties:
delay(number) - visible duration in millisecondscssClass(string) - CSS class to be used for this messagerawHtml(boolean) - renderstextwithout escaping; available since 2020.4.4701
Notes
The delay option overrides the default message timeout configured using messageHideAfter.
Example
This call will display a message for 5 seconds:
dp.message("Welcome!", { delay: 5000 });Displaying a message with a custom CSS class:
dp.message("Welcome!", { cssClass: "msg" });See Also
DayPilot.Scheduler.messageHideAfter
Message Bar [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot