Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Added min max limits to RadialTimePickers #272

Merged
merged 3 commits into from
Apr 22, 2016
Merged

Added min max limits to RadialTimePickers #272

merged 3 commits into from
Apr 22, 2016

Conversation

AustrianDudes
Copy link
Contributor

In case you need it at some point; I made a small modification for the RadialTimePicker. It is now possible to internally set a given date context (setPickerDate) for the time picker e.g. yesterday. This can be used to validate the selected time against a date (setValidateDateTime) and a defined range in minutes (setFutureMinutesLimit and setPastMinutesLimit).
e.g.
setPickerDate -> 20.04.2016
setValidateDateTime -> 21.04.2016 12:00
setFutureMinutesLimit -> 1440
setPastMinutesLimit -> 1440

If the time 13:00 is selected everything proceeds as usual.
If the time 11:00 is selected a warning is issued that the selected time is too far in the past.

@CedricGatay
Copy link
Contributor

Looks ok to me, I'm merging it, thank you for your contribution @AustrianDudes !

I will translate the news keys to french after merge, we will need contributions for other major languages though.

@CedricGatay CedricGatay merged commit 9b7ad03 into code-troopers:master Apr 22, 2016
CedricGatay added a commit that referenced this pull request Apr 22, 2016
French strings for PR #272 : allowing user to set time limits
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants