Thank you for your prompt reply! Thank you also for the sample.
I am sorry to be so selfish, but what I would like to do is to make Saturday blue and Sunday red in the day view.
If I specify “wx-weekend”, the gray color is applied to everything except the header, but if I prepare custom CSS other than “wx-weekend” (blue, red), the color is applied only to the header.
I would be very happy if colors were applied to other areas than the header, like “wx-weekend”.
Below is the program source we tried.
【js】
function isDayOff1(date) {
const d = date.getDay();
return d === 6;
}
function isDayOff2(date) {
const d = date.getDay();
return d === 0;
}
function highlightTime(d, u) {
if (u === "day" && isDayOff1(d)) return "wx-weekend-1";
if (u === "day" && isDayOff2(d)) return "wx-weekend-2";
return "";
}
【css】
/* Saturday color blue */
.wx-cell.wx-weekend-1.x2-nufjbd {
background: blue;
color: var(--wx-gantt-holiday-color);
}
/* Sunday color red */
.wx-cell.wx-weekend-2.x2-nufjbd {
background: red;
color: var(--wx-gantt-holiday-color);
}