TimePicker
Picking a time can be tough without context. A BitTimePicker offers a drop-down control that’s optimized for picking a single time from a clock view where contextual information like the day of the week or fullness of the calendar is important. You can modify the calendar to provide additional context or to limit available times.
Usage
Default BitTimePicker
:
BitTimePicker with 12 hours (AM/PM)
:
Disabled BitTimePicker
:
Disabled BitTimePicker with label
:
Style & Class
Component's Style & Class:
:
:
Styles & Classes:
:
:
Required BitTimePicker
Validation will happen when the
Submit
button is clicked.BitTimePicker allowing text input
The input field will open the BitTimePicker, and clicking the field again will dismiss the BitTimePicker and
allow text input. Please note to use this feature, you must enter the time in the exact
TimeFormat
provided for the BitTimePicker.
:
BitTimePicker with custom time formatting
Applications can customize how times are formatted and parsed. Formatted times can be ambiguous, so the control will avoid parsing the formatted strings of times selected using the UI when text input is allowed.
In this example, we are formatting and parsing times as hh-mm.ss.
:
BitTimePicker with a custom label
In this example, the callout of the BitTimePicker would be opened and closed using an icon button which is customely located in the label.
This functionality has been implemented using a public API provided in the BitTimePicker.
:
BitTimePicker with value two-way binding
:
BitTimePicker with custom left-handed icon
:
BitTimePicker with custom icon name
:
Custom Invalid Error Message
The custom invalid error message will show when an invalid time is entered.
Responsive BitTimePicker
:
Hour/minute step BitTimePicker
:
:
Implementation
BitTimePicker parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitInputBase parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase public members
Name |
Type |
Default value |
Description |
---|---|---|---|
BitTimePickerClassStyles properties
Name |
Type |
Default value |
Description |
---|---|---|---|
BitVisibility enum
Name |
Value |
Description |
---|---|---|
BitIconLocation enum
Name |
Value |
Description |
---|---|---|
BitTimePickerEditMode enum
Name |
Value |
Description |
---|---|---|
BitTimeFormat enum
Name |
Value |
Description |
---|---|---|
BitVisibility enum
Name |
Value |
Description |
---|---|---|
BitDir enum
Name |
Value |
Description |
---|---|---|