I use dateClass to highlight the time range (this range is not selectable! I just get the start and end dates and when I open the calendar I highlight the range between them)
ts:
RangeClass: MatCalendarCellClassFunction<Moment> = (cellDate, view) => {
if (view === "month") {
const date = cellDate.toDate();
return date >= mystart && date <= myend ? "range-class" : "";
}
return "";
};
css:
.range-class {
background: white;
border: 3px solid orange;
}
html:
<mat-datepicker [dateClass]="RangeClass" #picker></mat-datepicker>
This is how I see it: 1
I want to change the selection style to something like this: 2 or 3
How can I do it?