Blazor Scheduler Example - Working Hours
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This demo showcases how to set the required working hours on Scheduler, thus visually highlighting the cells underlying the given work hour range.
In this demo, work hours are set using the ScheduleWorkHours tag and usually apply only on the working days defined for the Schedule. It can either be highlighted or not by defining the Highlight option within the ScheduleWorkHours. The working hour range can be defined using the Start and End options available within the ScheduleWorkHours.
To set discontinuous working hours on a day, disable the default WorkHours on Scheduler by setting false to the Highlight option. Then, use the SetWorkHoursAsync method, which accepts the days collection and the start and end hour values as parameters.