DxToast.ProviderName Property
In This Article
The name of a provider that will display the notification.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
C#
[DefaultValue("")]
[Parameter]
public string ProviderName { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
String | String. |
The provider name. |
#Remarks
The DxToastProvider component serves as a toast container and should be declared in the place where toasts will be displayed. If a page contains several DxToastProvider objects, use the ProviderName
property to define a provider that will display the toast notification.
The ProviderName
property value must match the Name value of a toast provider.
razor
<DxToastProvider Name="WarningProvider" RenderStyle="ToastRenderStyle.Warning" />
<DxButton Text="Show a toast" Click="ShowToast" />
<DxToast @ref=toast ProviderName="WarningProvider" Text="The process cannot access the file." />
@code {
DxToast toast;
private void ShowToast() {
toast.Show();
}
}
See Also