DayPilot.Calendar.message

The message() method shows a message using the integrated message bar.

Declaration

DayPilot.Calendar.message(text[, options]);

Parameters

  • text (string) - message text
  • options.delay (int) - the number of milliseconds for which the message will be visible
  • options.cssClass (string) - custom CSS class to be added to the message bar
  • options.rawHtml (boolean) - if set to true, the message text will be treated as raw HTML and will not be HTML-encoded

Example

This call will display a message for 5 seconds:

dpc.message("Welcome!", {delay: 2000});