alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class ScheduleWorkHours

    A class that represents the work hours configurations on SfSchedule<TValue> component.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    ScheduleWorkHours
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    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 18:00.

    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

    false, to highlight the cells, the default value is true.

    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 09:00.

    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
    OwningComponentBase.Dispose(bool)

    OnInitializedAsync()

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type
    Task
    Overrides
    ComponentBase.OnInitializedAsync()

    OnParametersSetAsync()

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type
    Task
    Overrides
    ComponentBase.OnParametersSetAsync()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved