Time Picker: Auto close on time selection

Time Picker: Auto close on time selection

marcoheuermarcoheuer Posts: 5Questions: 2Answers: 0

Hi there -
Is it possible to have the time picker auto close when a time is selected?
https://editor.datatables.net/examples/dates/time.html

At the moment, one needs to click/tap out of the picker for it to close.
Ideally it should behave, just like the date picker.

Thank you!
Cheers,
Marco

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    The problem is that it's not clear when a time is 'selected' - as there are three components, the user may not go from top to bottom, they could just change one and consider it done, so I don't think it's quite that straightforward.

    Colin

  • marcoheuermarcoheuer Posts: 5Questions: 2Answers: 0

    Thank you, Colin. I had only considered a linear order of hour->min. Was just working off the behaviour of the Bootstrap Clockpicker as it has an option "autoclose" when a minute is selected.

  • sasmitsasmit Posts: 5Questions: 1Answers: 1

    I have a similar requirement. Is it possible to add a button on the timer picker to indicate completion of selection. Currently the user has to click 'somewhere outside'

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin

    I guess I could add a "Close" link at the bottom of the widget? Or perhaps a new line at the top with an option close icon (×)? I never really thought that was needed though, since, as you note, you can just click anywhere outside the widget to close it.

    Allan

Sign In or Register to comment.