Class GanttEventMarker
Configure event marker.
Inherited Members
Namespace: Syncfusion.Blazor.Gantt
Assembly: Syncfusion.Blazor.Gantt.dll
Syntax
public class GanttEventMarker : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
GanttEventMarker()
Declaration
public GanttEventMarker()
Properties
CssClass
Gets or sets the custom CSS class of Gantt EventMarker to customize background and label.
Declaration
[Parameter]
public string CssClass { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string value that represents the custom CSS class of the Gantt event marker. |
Remarks
This property is used to define a custom CSS class for the Gantt event marker. The custom CSS class can be used to customize the background and label of the event marker. If the property is not set, the default CSS class will be used.
Day
Gets or sets the date of Gantt EventMarker.
Declaration
[Parameter]
public DateTime Day { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime | A DateTime value that represents the date of the Gantt event marker. |
Remarks
This property is used to define the date of the Gantt event marker. The event marker will be displayed on the specified date.
Label
Gets or sets label of Gantt EventMarker.
Declaration
[Parameter]
public string Label { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string value that represents the label of the Gantt event marker. |
Remarks
This property is used to define the label of the Gantt event marker. The label will be displayed on the event marker. If the property is not set, no label will be displayed.
Top
Gets or sets the vertical position, in pixels, of the Gantt Event Marker label.
Declaration
[Parameter]
public string Top { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string value expressed as a CSS length in pixels (for example,
|
Remarks
Use Top to control the vertical position of Event Marker labels when multiple
Event Markers are rendered on the same Day, helping to prevent label overlap.
If an invalid or negative value is specified, the Event Marker is rendered using the default
vertical position of "50px".
When multiple Event Markers share the same Day and the Top
property is not specified for each marker, all labels are rendered using the default position
of "50px". No automatic stacking, collision avoidance, or position calculation is
applied, and Event Markers rendered at the same position may overlap.
The Top property affects only the vertical placement of the Event Marker label. The Event Marker timeline indicator line continues to use its existing rendering logic and is not repositioned by Top. Labels rendered outside the visible timeline container are clipped by the container boundaries.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |
Overrides
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()
Triggers during the initial rendering of the component.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type | Description |
|---|---|
| Task | A 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 |
|---|
| Task |