DxTimeEdit<T>.Time Property

Specifies time that is selected in the Time Edit component.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

Declaration

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

Property Value

Type Description
T

A value that represents 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