Class GanttTooltipSettings<TValue>
Configures Gantt Tooltip settings collection.
Inheritance
System.Object
GanttTooltipSettings<TValue>
Namespace: Syncfusion.Blazor.Gantt
Assembly: Syncfusion.Blazor.dll
Syntax
public class GanttTooltipSettings<TValue> : ComponentBase
Type Parameters
Name | Description |
---|---|
TValue | Specifies the type of GanttTooltipSettings. |
Constructors
GanttTooltipSettings()
Declaration
public GanttTooltipSettings()
Properties
BaselineTemplate
Defines template for baseline tooltip element.
Declaration
public RenderFragment<TValue> BaselineTemplate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment<TValue> |
ConnectorLineTemplate
Defines template for dependency line tooltip.
Declaration
public RenderFragment<TValue> ConnectorLineTemplate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment<TValue> |
EditingTemplate
Gets or sets a template that appears on tooltip while editing taskbar.
Declaration
public RenderFragment<TValue> EditingTemplate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment<TValue> |
Remarks
The parameters passed to the templates can be accessed using implicit parameter named context
.
The context is of type TValue of Gantt.
Examples
<GanttTooltipSettings ShowTooltip="true" TValue="TaskData">
<EditingTemplate>
@{
<div>Start Date: @context.StartDate</div>
}
</EditingTemplate>
</GanttTooltipSettings>
ManualTaskbarTemplate
Defines tooltip template for ManualTaskbar elements.
Declaration
public RenderFragment<TValue> ManualTaskbarTemplate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment<TValue> |
ShowTooltip
Gets or sets whether to enable or disable the tooltip in gantt chart.
Declaration
public bool ShowTooltip { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if need to render tooltip; otherwise, false. The default value is true. |
Remarks
Displays the respective content values like start date, end date, duration, progress, etc., in tooltip
Examples
<SfGantt DataSource="@TaskCollection">
<GanttTooltipSettings ShowTooltip="true"></GanttTooltipSettings>
</SfGantt>
See Also
GanttTooltipSettings<TValue>
TaskbarTemplate
Defines tooltip template for taskbar elements.
Declaration
public RenderFragment<TValue> TaskbarTemplate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment<TValue> |
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
OnParametersSetAsync()
Declaration
protected override Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |