Element: [Feature Request] TimePicker > disable time

Created on 17 Jul 2018  ·  3Comments  ·  Source: ElemeFE/element

Existing Component

Yes

Component Name

TimePicker

Description

Missing one option, the disable time, should works like disabledDate in DatePicker

All 3 comments

@flamner you can limit the time range by specifying selectableRange. http://element.eleme.io/#/en-US/component/time-picker#arbitrary-time-picker

@ziyoung Yes, I know, but I tried to make a reservation system, set range from 8:00 to 24:00 and set steps every 30 minutes. So, as you suggested, using selectableRange is too complicated solution to generate arrays with disabled hours already reserved, so much easier will be add new option like disabledDate in date picker :/

In that case, you can use a normal select, with options generated accordingly.

Was this page helpful?
0 / 5 - 0 ratings