DayPilot.Scheduler.message

Shows a message using the integrated message bar.

Declaration

DayPilot.Scheduler.message(html, delay);
DayPilot.Scheduler.message(html, options);

Parameters

  • html (string) - HTML of the message
  • delay (int) - the number of milliseconds for which the message will be visible
  • options (object) - additional options

Options:

  • options.delay (int) - delay in ms
  • options.cssClass (string) - CSS class to be used for this message

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!", 5000);

Displaying a message with a custom CSS class:

dp.message("Welcome!", {cssClass: "msg"} );

DayPilot for JavaScript, ASP.NET WebForms, ASP.NET MVC, Java