DxToastProvider.DisplayTime Property
Specifies how long toasts are visible.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
[Parameter]
public TimeSpan DisplayTime { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Time |
5 seconds | The time span; |
#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" />