The message() method shows a message using the integrated message bar.
DayPilot.Month.message(text[, options]);text (string) - message text
options.delay (number) - visible duration in milliseconds
options.cssClass (string) - custom CSS class added to the message bar
options.rawHtml (boolean) - set to true to treat the message text as raw HTML instead of HTML-encoding it
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.
const month = new DayPilot.Month("dp", {
// ...
});
month.init();
month.message("Welcome!", { delay: 5000 });