Class GanttTimelineTierSettings
Configures gantt Timeline tier collection.
Namespace: Syncfusion.Blazor.Gantt
Assembly: Syncfusion.Blazor.dll
Syntax
public class GanttTimelineTierSettings : OwningComponentBase
Constructors
GanttTimelineTierSettings()
Declaration
public GanttTimelineTierSettings()
Properties
Count
Gets or sets the number of timeline units combined for a single cell.
Declaration
public int Count { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | An System.Int32 that represents the number of timeline units combined for a single cell. The default value is |
Remarks
This property allows you to control how many timeline units are combined into a single cell in the timeline view. For example, if Count is set to 2 and the timeline view displays hours, each cell will represent a two-hour period. The default value is 1, which means each cell represents a single timeline unit.
Format
Gets or sets the timeline cell format.
Declaration
public string Format { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String that represents the timeline cell format. The default value is an empty string. |
Remarks
This property allows you to specify the format of the text displayed in the timeline cells. The format is a string that can include a combination of static text and format placeholders. For example, if the timeline displays hours, the format string "h:mm tt" would display the time in a 12-hour clock format with AM or PM. If this property is set to an empty string, the default format for the timeline unit is used.
Formatter
Defines a method to get custom formatted values of timeline cells.
Declaration
public dynamic Formatter { get; set; }
Property Value
Type | Description |
---|---|
System.Object | This property gets or sets the custom formatter used to get the formatted values of timeline cells. Default value is null. |
Remarks
The custom formatter method should accept a single parameter of type dynamic and return a string.
FormatterTemplate
Defines a template for formatting the timeline cells.
Declaration
public RenderFragment<GanttTimelineFormatter> FormatterTemplate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment<GanttTimelineFormatter> | This property gets or sets the template for formatting the timeline cells. Default value is null. |
Remarks
The RenderFragment type allows you to define a template that can be used to format the timeline cells. The template should accept a single parameter of type GanttTimelineFormatter and return a RenderFragment.
tier
Declaration
protected string tier { get; set; }
Property Value
Type |
---|
System.String |
Unit
Defines the timeline mode.
Declaration
public TimelineViewMode Unit { get; set; }
Property Value
Type | Description |
---|---|
TimelineViewMode | This property gets or sets the timeline mode. Default value is TimelineViewMode.Day. |
Remarks
The TimelineViewMode enum determines the type of time unit per cell. The available options are Day, Week, Month, Year.
Methods
OnInitializedAsync()
Receive its initial parameters from its parent in the render tree.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Task. |
OnParametersSetAsync()
Incoming values have been assigned to properties.
Declaration
protected override Task OnParametersSetAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |