Skip to main content
A newer version of this page is available. .

DxTimeEdit<T>.Time Property

Specifies time that is selected in the Time Edit component.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public T Time { get; set; }

Property Value

Type Description
T

A value that defines selected time.

Remarks

Use the Time property to specify the Time Edit’s selected time…

<DxTimeEdit Time="new TimeSpan(9, 30, 0);"></DxTimeEdit>

… or bind the property to a variable that stores time.

<DxTimeEdit @bind-Time="@TimeValue" ></DxTimeEdit>

@code {
    TimeSpan TimeValue { get; set; } = DateTime.Now.TimeOfDay;
}

Note

To handle the time change, use the TimeChanged event.

Run Demo: Time Edit

See Also