## TimePicker Use Time Picker for time input. ### Fixed time picker Provide a list of fixed time for users to choose. :::demo Use `el-time-select` label, then assign start time, end time and time step with `start`, `end` and `step`. ```html ``` ::: ### Arbitrary time picker Can pick an arbitrary time. :::demo Use `el-time-picker` label, and you can limit the time range by using `selectableRange`. ```html ``` ::: ### Fixed time range If start time is picked at first, then the end time will change accordingly. :::demo ```html ``` ::: ### Arbitrary time range Can pick an arbitrary time range. :::demo We can pick a time range by adding an `is-range` attribute. ```html ``` ::: ### Attributes | Attribute | Description | Type | Accepted Values | Default | |---------- |-------------- |---------- |-------------------------------- |-------- | | readonly | whether DatePicker is read only | boolean | — | false | | disabled | whether DatePicker is disabled | boolean | - | false | | editable | whether the input is editable | boolean | - | true | |size | size of Input | string | large/small/mini | — | | placeholder | placeholder | string | — | — | | format | format of the picker | string | hour `HH`, minute `mm`, second `ss` | HH:mm:ss | | value | value of the picker | date for Time Picker, and string for Time Select | hour `HH`, minute `mm`, second `ss` | HH:mm:ss | | align | alignment | left/center/right | left | | popper-class | custom class name for TimePicker's dropdown | string | — | — | | picker-options | additional options, check the table below | object | — | {} | ### Time Select Options | Attribute | Description | Type | Accepted Values | Default | |---------- |-------------- |---------- |-------------------------------- |-------- | | start | start time | string | — | 09:00 | | end | end time | string | — | 18:00 | | step | time step | string | — | 00:30 | | minTime | minimum time, any time before this time will be disabled | string | — | 00:00 | ### Time Picker Options | Attribute | Description | Type | Accepted Values | Default | |---------- |-------------- |---------- |-------------------------------- |-------- | | selectableRange | available time range, e.g.`'18:30:00 - 20:30:00'`or`['09:30:00 - 12:00:00', '14:30:00 - 18:30:00']` | string/array | — | — |