mdehoog / Semantic-UI-Calendar

Calendar module for Semantic UI
MIT License
805 stars 126 forks source link

Don't show minutes when choosing an hour #62

Closed cowwoc closed 7 years ago

cowwoc commented 7 years ago

When prompting the user for a time, this module first asks for an hour then asks for the minutes.

Consider showing 6AM and 7AM when choosing hours instead of 6:00AM and 7:00AM. Only show the minutes after the hours have been locked down.

The first time I used this UI I wanted to choose 6:23AM. When I was prompted to choose the hour, I wasn't sure whether I should select 6:00AM or 7:00AM because I wanted a time in between the two. This becomes obvious when you've run through the UI multiple times, but the first time it is confusing.

mdehoog commented 7 years ago

You could use the formatter.time to achieve this. See this JSBin for an example: https://jsbin.com/tefigujecu/edit?html,js,output