private async Task CreateVehicle()
{
try
{
TanCoLogisticsSDK.Vehicle result = await VCIJ.PostVehicleAsync(Vehicle);
this.ToastTitle = "Success";
this.ToastContent = "Saved";
StateHasChanged();
await Task.Delay(100);
ToastObj.Show();
}
catch (Exception e)
{
this.ToastTitle = "Error";
this.ToastContent = "Check and retry";
await Task.Delay(100);
ToastObj.Show();
}
}
|
I use Syncfusion.Blazor 18.3.0.51 and refer above Sample , but Content has no change .
My main procedures are below :
Step1 : SfToast Component has define mapping attribute.
Step2 . Declare Contents use Array Variable