Class ScheduleWorkHours
A class that represents the work hours configurations on SfSchedule<TValue> component.
Inherited Members
Namespace: Syncfusion.Blazor.Schedule
Assembly: Syncfusion.Blazor.dll
Syntax
public class ScheduleWorkHours : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
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
[Parameter]
public string End { get; set; }
Property Value
| Type | Description |
|---|---|
| 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
[Parameter]
public bool Highlight { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
Start
Gets or sets the time string in short skeleton format HH:mm, which usually denotes the start of the working hour range.
Declaration
[Parameter]
public string Start { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string value representing the time. The default value is |
Methods
Dispose(bool)
Dispose unmanaged resources in the Syncfusion Blazor component.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing | Boolean value to dispose the object. |
Overrides
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
| Type |
|---|
| Task |
Overrides
OnParametersSetAsync()
Declaration
protected override Task OnParametersSetAsync()
Returns
| Type |
|---|
| Task |