The cssClass property (string) sets the CSS class applied to the top-level JavaScript Calendar placeholder element.
Available since 2023.1.5547.
DayPilot.Calendar.cssClassnullYou can use this property to change the styling dynamically in addition to the active theme.
JavaScript
const calendar = new DayPilot.Calendar("dp", {
cssClass: "my-class",
// ...
});
calendar.init();Angular
<daypilot-calendar [config]="config"></daypilot-calendar>config: DayPilot.CalendarConfig = {
cssClass: "my-class",
// ...
};React
<DayPilotCalendar
cssClass="my-class"
{/* ... */}
/>Vue
<DayPilotCalendar
cssClass="my-class"
<!-- ... -->
/>