Skip to main content
All docs
V24.1

DxToast.Id Property

Specifies the toast’s unique identifier.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public string Id { get; set; }

Property Value

Type Description
String

A string that identifies the component.

Remarks

<DxButton Text="Show toast" Click="ShowDeclaredToast" />
<DxToastProvider />

<DxToast Id="toast1" Text="The toast specified in markup." />

@code {
    [Inject] IToastNotificationService ToastService { get; set; }

    private void ShowDeclaredToast() {
        ToastService.ShowToast("toast1");
    }
}
See Also