Files
radzen-blazor/Radzen.Blazor/Rendering/ChartTooltip.razor
Maxim Becker 13326879f0 Render chart tooltips in the same way as standard tooltips (#1745)
* Render chart tooltips in the same way as standard tooltips

* Move OpenChartTooltip method to TooltipService to avoid code duplications

* Avoid partially hiding of chart tooltip near top of page

* Make some of the types internal.

---------

Co-authored-by: Atanas Korchev <akorchev@gmail.com>
2024-10-28 10:01:13 +02:00

35 lines
726 B
Plaintext

<div class="rz-chart-tooltip @Class">
<div class="rz-chart-tooltip-content" style="@Style">
@if (ChildContent != null)
{
@ChildContent
}
else
{
<div class="rz-chart-tooltip-title">@Title</div>
<label>@($"{Label}:")
<span class="rz-chart-tooltip-item-value">@Value</span>
</label>
}
</div>
</div>
@code {
[Parameter]
public string Style { get; set; }
[Parameter]
public RenderFragment ChildContent { get; set; }
[Parameter]
public string Title { get; set; }
[Parameter]
public string Value { get; set; }
[Parameter]
public string Label { get; set; }
[Parameter]
public string Class { get; set; }
}