Skip to main content
All docs
V24.1

DxToastProvider.DisplayTime Property

Specifies how long toasts are visible.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public TimeSpan DisplayTime { get; set; }

Property Value

Type Default Description
TimeSpan 5 seconds

The time span;
0 to disable toast auto-hide.

Remarks

Use the DisplayTime property to specify the period after which a toast disappears.

<DxToastProvider DisplayTime="@TimeSpan.FromSeconds(20)" FreezeOnClick="true" />

Set the DisplayTime property to 0 (zero) to make the message visible until it is closed.

<DxToastProvider DisplayTime="@TimeSpan.Zero" />
See Also