Class ScheduleWorkHours
A class that represents the work hours configurations on SfSchedule<TValue> component.
Inheritance
Namespace: Syncfusion.Blazor.Schedule
Assembly: Syncfusion.Blazor.dll
Syntax
public class ScheduleWorkHours : OwningComponentBase
Remarks
You can configure the work hours by specifying values for the corresponding properties. workhours can be applied for Day, Week, WorkWeek, TimelineDay, TimelineWeek and TimelineWorkWeek views.
Examples
The following code example shows how to configure the work hours:
<SfSchedule TValue="AppointmentData">
<ScheduleWorkHours Start="08:00" End="20:00"></ScheduleWorkHours>
</SfSchedule>
Constructors
ScheduleWorkHours()
Declaration
public ScheduleWorkHours()
Properties
End
Gets or sets the time string in short skeleton format HH:mm, which usually denotes the end of the working hour range.
Declaration
public string End { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | A string value representing the time. The default value is |
Highlight
Gets or sets a value indicating whether the cells of the working hour range should be highlighted with an active color.
Declaration
public bool Highlight { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
Start
Gets or sets the time string in short skeleton format HH:mm, which usually denotes the start of the working hour range.
Declaration
public string Start { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | A string value representing the time. The default value is |
Methods
Dispose(Boolean)
Dispose unmanaged resources in the Syncfusion Blazor component.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing | Boolean value to dispose the object. |
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
| Type |
|---|
| System.Threading.Tasks.Task |
OnParametersSetAsync()
Declaration
protected override Task OnParametersSetAsync()
Returns
| Type |
|---|
| System.Threading.Tasks.Task |