Back to Devexpress

DxToast.Id Property

blazor-devexpress-dot-blazor-dot-dxtoast-8cef3339.md

latest1.0 KB
Original Source

DxToast.Id Property

Specifies the toast’s unique identifier.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDescription
String

A string that identifies the component.

|

Remarks

razor
<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

DxToast Class

DxToast Members

DevExpress.Blazor Namespace