DayPilot.Scheduler.message

Shows a message using the integrated message bar.

Declaration

DayPilot.Scheduler.message(text, options);

Parameters

  • text (string) - HTML of the message
  • options (object) - additional options

Options:

  • options.delay (number) - the number of milliseconds for which the message will be visible
  • options.cssClass (string) - CSS class to be used for this message
  • options.rawHtml (boolean) - whether to treat text as raw HTML (render without escaping); since 2020.4.4701

The delay overrides the default delay which can be set using messageHideAfter property.

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"} );