|
@using Syncfusion.Blazor.Notifications
@using Syncfusion.Blazor.Charts
<button class="e-btn" @onclick="@Show">Chart Refrence</button>
<SfToast ID="tChartToast" @ref="tChartToast" Width="230px" ExtendedTimeout="0" Timeout=4000>
<ToastPosition X="Center" Y="Bottom"></ToastPosition>
<ToastTemplates>
<Template>
<div style="width:100%; height:100%">
<ChartComponent @ref="tChart"></ChartComponent>
</div>
</Template>
</ToastTemplates>
</SfToast>
@code {
ChartComponent tChart = new ChartComponent();
SfToast tChartToast;
public async Task Show()
{
this.tChartToast.Show();
}
}
|
|
@using Syncfusion.Blazor.Charts
<SfChart></SfChart>
|