ToastOptions.FreezeOnClick Property
Specifies whether to turn off auto-hide for the toast after it has been clicked.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(null)]
public bool? FreezeOnClick { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Nullable<Boolean> | null |
|
Remarks
A toast notification automatically disappears after the period specified by DisplayTime. Set the FreezeOnClick
property to true
to allow users to freeze a toast notification (prevent it from disappearing) with a click.
[Inject] IToastNotificationService ToastService { get; set; }
ToastService.ShowToast(new ToastOptions {
Title = "Notification",
Text = "The process is completed.",
FreezeOnClick = true
});
See Also