DayPilot.Scheduler.message

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

Declaration

DayPilot.Scheduler.message(text, options)

Parameters

  • text (string) - message text or HTML content

  • options (object) - additional options

The options object supports the following properties:

  • delay (number) - visible duration in milliseconds

  • cssClass (string) - CSS class to be used for this message

  • rawHtml (boolean) - renders text without escaping; available since 2020.4.4701

Notes

The delay option overrides the default message timeout configured using messageHideAfter.

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

See Also

DayPilot.Scheduler.messageHideAfter

Message Bar [doc.daypilot.org]

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript