DayPilot.Calendar.cssClass

The cssClass property (string) sets the CSS class that will be applied to the JavaScript Calendar. This CSS class will be added to the placeholder element at the top level.

You can use this property to change the styling dynamically (in addition to the theme).

Available since 2023.1.5547.

Default Value

null

Example

const calendar = new DayPilot.Calendar("dp", {
  cssClass: "my-class",
  // ...
});
calendar.init();