TimePicker
Description
The TimePicker component provides a native browser control for selecting a time. It stores the selected value as a DateTimeOffset and is useful for schedules, reminders, cut-off times, and other time-only inputs.
Usage
Create a TimePicker() with or without an initial value. You can combine it with min/max validation, browser fallback attributes, and change handlers.
API reference
public class TimePicker : MomentPickerBase<TimePicker, DateTimeOffset>A TimePicker component that allows users to select a time using a native HTML time input.
- Namespace
- Tesserae
- Inheritance
- MomentPickerBase<TimePicker, DateTimeOffset> → TimePicker
Constructors
| Name | Description |
|---|---|
| TimePicker | Initializes a new instance of the TimePicker class. |
Properties
| Name | Description |
|---|---|
| Time | Gets the selected time as a DateTimeOffset. |
Methods
| Name | Description |
|---|---|
| WithBrowserFallback | Adds the pattern attribute to the underlying input element for graceful degradation when retrieving the user selected value on older browsers. |