|
onRenderCell(args) {
if (args.date) {
let date = new Date(args.date.getFullYear(), args.date.getMonth(), args.date.getDate()).getTime();
if (this.holidays.indexOf(date) > -1) {
args.element.classList.add("e-public-holiday");
}
}
} |
|
.e-public-holiday {
background-color: #909090 !important;
} |
Hi Brian,Greetings from Syncfusion support.We have validated your requirement at our end and achieved it with the help of the renderCell event of the Schedule and for the same, we have prepared a sample which can be available from the below link.[index.js]
onRenderCell(args) {if (args.date) {let date = new Date(args.date.getFullYear(), args.date.getMonth(), args.date.getDate()).getTime();if (this.holidays.indexOf(date) > -1) {args.element.classList.add("e-public-holiday");}}}[index.css]
.e-public-holiday {background-color: #909090 !important;}Kindly try the above sample and get back to us if you need any further assistance.Regards,Ravikumar Venkatesan