Back to Devexpress

ToastBuilder.DisplayTime(Double) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-toastbuilder-dot-displaytime-x28-system-dot-double-x29.md

latest1.3 KB
Original Source

ToastBuilder.DisplayTime(Double) Method

The time span in milliseconds during which the Toast UI component is visible. Mirrors the client-side displayTime option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public ToastBuilder DisplayTime(
    double value
)

Parameters

NameTypeDescription
valueDouble

The option value.

|

Returns

TypeDescription
ToastBuilder

A reference to this instance after the method is called.

|

Remarks

Use the following notation to set the option’s value:

cshtml
@(Html.DevExtreme().Toast()
    .DisplayTime(1000)
)

See Also

ToastBuilder Class

ToastBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace