DxTimeEdit<T>.Time Property
Specifies time that is selected in the Time Edit component.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v22.2.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
- The Time Edit supports DateTime, Nullable DateTime, TimeSpan, and Nullable TimeSpan types.
- If the specified time value is out of a range, the Time Edit’s picker displays the nearest available time.
To handle the time change, use the TimeChanged event.
See Also