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

[DatePicker] have min-max dates props to limit user range. #1241

Closed
sgoretti opened this issue Aug 19, 2016 · 2 comments
Closed

[DatePicker] have min-max dates props to limit user range. #1241

sgoretti opened this issue Aug 19, 2016 · 2 comments

Comments

@sgoretti
Copy link
Contributor

Current behaviour

User can select any date he wants.
Example:
In Linkit there are jobs with a start and end date. Inside these jobs a user can create a service, whose dates must be within the job. At the moment, the user can select any date he wants and when saving an error will display.

Expected behaviour

I want to be able to prevent dates from being selectes outside a range / afrter / before a given date.
Just as in captaintrain, when you select a departure date, your return date can't be before (and the departure date can't be before today).

Versions

Focus-core: 0.15.0
Focus-components: 0.15.0

@sgoretti
Copy link
Contributor Author

Ultimately, ti would be even better if we could add a label explaining the limits.
For example, the maximum date that can be picked would have a different color and the hover would display the text explaining the reason of this limit.
In my Linkit example, when creating a service, the max date would have "The job ends on DD/MM/YYYY. Services can't end beyond the job end." as an explanation in hover.

@TomGallon
Copy link
Contributor

This issue was moved to get-focus/deprecated-focus-components-v3#4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants