Class GanttHoliday
Gantt Holiday collection.
Inherited Members
Namespace: Syncfusion.Blazor.Gantt
Assembly: Syncfusion.Blazor.dll
Syntax
public class GanttHoliday : SfDataBoundComponent
Constructors
GanttHoliday()
Declaration
public GanttHoliday()
Properties
CssClass
Gets or sets custom css class to apply to the holiday for customizing the background and label.
Declaration
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the custom CSS class to apply to the holiday. |
Remarks
This property allows to customize the appearance of the holiday by providing a custom CSS class. The CSS class can be used to apply specific styles to the holiday, such as changing the background color or label text color. If no custom CSS class is provided, the holiday will use the default styles.
From
Gets or sets start date of the holiday.
Declaration
public Nullable<DateTime> From { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | A nullable DateTime representing the start date of the holiday. |
Remarks
This property is used to define the start date of the holiday. If no start date is provided, the holiday will not be displayed.
Label
Gets or sets label for the holiday.
Declaration
public string Label { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the label for the holiday. |
Remarks
This property is used to define the label for the holiday. The label is the text that will be displayed on the holiday. If no label is provided, no text will be displayed on the holiday.
To
Gets or sets end date of the holiday.
Declaration
public Nullable<DateTime> To { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | A nullable DateTime representing the end date of the holiday. |
Remarks
This property is used to define the end date of the holiday. If no end date is provided, the holiday will be displayed as a single-day event.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
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. |
Overrides
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. |
Overrides
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 |