TimePicker
A floating picker panel that displays scrollable hour, minute, and optionally second columns for time selection. Each column is a List that the user can scroll or click to pick a value. This widget is used internally as the picker for TimeField and is not typically instantiated directly.
new TimeField({
label : 'Time field',
appendTo : document.body,
// Configure the time picker
picker : {
cls : 'my-picker-class'
}
});
Contained widgets
The default widgets contained in this picker are:
| Widget ref | Type | Description |
|---|---|---|
hour |
List | The hour picker |
minute |
List | The minute picker |
second |
List | The second picker |
See also
- TimeField - Text input field that uses this picker
- DateTimeField - Combined date and time field
This class is not intended for direct use in applications. It is used internally by the TimeField class.
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
Time format. Used to set appropriate 12/24 hour format to display. See DateHelper for formatting options.
Has a corresponding runtime format property.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of TimePicker class, or subclass thereof.
-
Time format. Used to set appropriate 12/24 hour format to display. See DateHelper for formatting options.
Has a corresponding format config.
-
Initial value, which can be a Date or a string. If a string is specified, it will be converted using the specified format. Initial value is restored on Escape click
-
Identifies an object as an instance of TimePicker class, or subclass thereof.