The message() method displays a message using the integrated message bar.
Declaration
DayPilot.Calendar.message(text[, options]);Parameters
text(string) - message textoptions.delay(number) - visible duration in millisecondsoptions.cssClass(string) - custom CSS class added to the message baroptions.rawHtml(boolean) - set totrueto treat the message text as raw HTML instead of HTML-encoding it
Notes
Use options.delay to control how long the message stays visible.
By default, the supplied text is HTML-encoded. Set options.rawHtml to true when you need to render HTML markup in the message bar.
Use options.cssClass to apply custom styling to the displayed message.
Example
This call displays a message for 5 seconds:
const calendar = new DayPilot.Calendar("dp", {
// ...
});
calendar.init();
calendar.message("Welcome!", { delay: 5000 });See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot