menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GanttLabelSettings<TValue> - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GanttLabelSettings<TValue>

    Configures Gantt Label settings.

    Inheritance
    System.Object
    GanttLabelSettings<TValue>
    Namespace: Syncfusion.Blazor.Gantt
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class GanttLabelSettings<TValue> : ComponentBase
    Type Parameters
    Name Description
    TValue

    Specifies the type of GanttLabelSettings.

    Constructors

    GanttLabelSettings()

    Declaration
    public GanttLabelSettings()

    Properties

    LeftLabel

    Gets or sets left side label of the task.

    Declaration
    public string LeftLabel { get; set; }
    Property Value
    Type Description
    System.String

    A string representing the left side label of the task.

    Remarks

    This property is used to define the left side label of the task. The left side label typically displays information such as the task's name or start date. By default, this property is set to null.

    LeftLabelTemplate

    Gets or sets template for the left label.

    Declaration
    public RenderFragment<TValue> LeftLabelTemplate { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.RenderFragment<TValue>

    A Microsoft.AspNetCore.Components.RenderFragment<> that represents the template for the left label.

    Remarks

    This property allows the user to specify a custom template for the left label of the control. By default, the left label is null. The template should be specified as a Microsoft.AspNetCore.Components.RenderFragment<>.

    RightLabel

    Gets or sets right side label of the task.

    Declaration
    public string RightLabel { get; set; }
    Property Value
    Type Description
    System.String

    A string representing the right side label of the task.

    Remarks

    This property is used to define the right side label of the task. The right side label typically displays information such as the task's end date or duration. By default, this property is set to null.

    RightLabelTemplate

    Gets or sets template for the right label.

    Declaration
    public RenderFragment<TValue> RightLabelTemplate { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.RenderFragment<TValue>

    A Microsoft.AspNetCore.Components.RenderFragment<> that represents the template for the right label.

    Remarks

    This property allows the user to specify a custom template for the right label of the control. By default, the right label is null. The template should be specified as a Microsoft.AspNetCore.Components.RenderFragment<>.

    TaskLabel

    Defines the label which is displayed on the taskbar of the Gantt chart component.

    Declaration
    public string TaskLabel { get; set; }
    Property Value
    Type Description
    System.String

    The taskbar label to be displayed.

    Remarks

    This property is used to set the label that appears on the taskbar.

    TaskLabelTemplate

    Gets or sets template for the task label.

    Declaration
    public RenderFragment<TValue> TaskLabelTemplate { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.RenderFragment<TValue>

    A Microsoft.AspNetCore.Components.RenderFragment<> that represents the template for the task label.

    Remarks

    This property allows the user to specify a custom template for the task label of the control. By default, the task label is null. The template should be specified as a Microsoft.AspNetCore.Components.RenderFragment<>.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

    OnInitializedAsync()

    Triggers during the initial rendering of the component.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    A System.Threading.Tasks.Task representing the asynchronous operation.

    OnParametersSetAsync()

    Called by the framework when component parameters have been set. Executes logic that depends on the updated parameter values.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type
    System.Threading.Tasks.Task
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved