CalendarPicker icon indicating copy to clipboard operation
CalendarPicker copied to clipboard

Is this plugin can be used for time picker

Open jitendrahpatwa opened this issue 4 years ago • 2 comments

Hi,

Want to know is Calendar Picker also can be used for time picker using native or customize time wizard where can have option like hour minute with ante meridiem and post meridiem. Is it or is any other relatively plugin available for time picker, please reply.

jitendrahpatwa avatar Jul 28 '20 19:07 jitendrahpatwa

I am also wondering the same question.

oakkas avatar Jan 11 '21 05:01 oakkas

Please submit a PR to add this feature. IMHO it's outside the scope of CalendarPicker. The user would need to click a button to change to time picker mode, and that could be easily implemented through an external button that shows either the CalendarPicker or time picker. For instance:

<Button onClick={toggleTimeOrDate}>

{ timeOrDate ?
  <CalendarPicker
    ...
  />
  :
  <MyTimePicker/>
}

I would be open to a PR adding time picker support. It would need to be maintained, so whoever writes it should also be ready to support it.

peacechen avatar Jan 11 '21 06:01 peacechen