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

Allow max value to be in seconds #93

Open
butaminas opened this issue Nov 25, 2019 · 0 comments
Open

Allow max value to be in seconds #93

butaminas opened this issue Nov 25, 2019 · 0 comments
Labels
💡 feature request Feature requests ⏳ roadmap Added in TODO stack

Comments

@butaminas
Copy link

I'm trying to create a range time picker with this component (two fields to select start and end times). The feature I am looking for is to define max value for the time picker, so the user couldn't select a bigger value than the defined one.

The problem is that I can define max hours, minutes and seconds, but that only makes things complicated.
If my max time is 2 hours 15 minutes and 15 seconds, that means that if a user selects 1 hour, there should be no limit for minutes and seconds and if a user selects 2 hours, then the max minutes should be limited to 15 minutes and so on with seconds.

For that, I have to create a long script to detect user selection and based on the selection, define the max minutes and max seconds.

It would be much more convenient if you could just define max seconds (the same way you can do in HTML input type="time" max attribute) and based on that value, you wouldn't be able to select a bigger overall time value.

@phoenixwong phoenixwong added the 💡 feature request Feature requests label Nov 26, 2019
@phoenixwong phoenixwong added the ⏳ roadmap Added in TODO stack label Dec 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 feature request Feature requests ⏳ roadmap Added in TODO stack
Projects
None yet
Development

No branches or pull requests

2 participants