Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dropdown menus to timepicker #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

fjl5
Copy link

@fjl5 fjl5 commented Jul 24, 2020

Using sliders to change hours, minutes and seconds is cumbersome to many users. Especially entering "clean" times like 09:15:00 is a pain, as the sliders are pretty short.

This pull request adds dropdown menus to the hours, minutes and seconds values. The "hours" dropdown menu has submenus for each hour with 00:00, 15:00, 30:00 and 45:00 settings for minutes and seconds. This makes it easy to select clean time slots. The dropdown menus for minutes and seconds menus have their values in 5 minutes/seconds steps, with a submenu to select the values in between.

To minimize the required mouse interaction, the dropdowns and submenus open on mouse over (hover). The min/max values for hours, minutes and seconds are respected.

PS: Also includes a trivial fix for the spacing between the minutes and seconds slider.

See it in action, using the visual-tests.html file:
air-datepicker-dropdown

Using sliders to change hours, minutes and seconds is cumbersome to many
users. Especially entering "clean" times like 09:15:00 is a pain, as the
sliders are pretty short.

This pull request adds dropdown menus to the hours, minutes and seconds
values. The "hours" dropdown menu has submenus for each hour with
00:00, 15:00, 30:00 and 45:00 settings for minutes and seconds. This
makes it easy to select clean time slots. The dropdown menus for
minutes and seconds menus have their values in 5 minutes/seconds steps,
with a submenu to select the values in between.

To minimize the required mouse interaction, the dropdowns and submenus
open on mouse over (hover). The min/max values for hours, minutes and
seconds are respected.

Also includes a trivial fix for the spacing between the minutes and
seconds slider.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant