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 the reference date to be the value of another picker #190

Open
ppazos opened this issue Mar 16, 2023 · 2 comments
Open

Allow the reference date to be the value of another picker #190

ppazos opened this issue Mar 16, 2023 · 2 comments
Assignees

Comments

@ppazos
Copy link

ppazos commented Mar 16, 2023

I'm playing with pair and direction options and it doesn't seem quite right to define a generic datetime range:

  1. picker A top limited by the value of picker B, if there is no value, do not limit
  2. picker B bottom limited by the value of picker A, if there is no value, do not limit

It seems the direction option considers the reference date to today, so I can't set 1st day last month as the picker B value and let picker A be top limited by that value.

Not sure how this could be accomplished. Reading the docs the range pickers seem to be a missing feature "Date ranges (sort of)" https://stefangabos.github.io/Zebra_Datepicker/

To be able to use this picker, ranges is a requirement for my application. The library seems really good for my other use cases, I really like, for instance, the format being specified in the PHP way, and has many other useful options, just lacking on the range thing.

Thanks!

@stefangabos
Copy link
Owner

stefangabos commented Mar 16, 2023

yes, setting the pair attribute doesn't work when set to both date pickers. that's why it is eternally called sort of :)
might give this a try - proper pairing, with two open pickers - this year. i can commit to anything more exact than that :)
but thanks for the feedback!

@stefangabos stefangabos self-assigned this Mar 16, 2023
@ppazos
Copy link
Author

ppazos commented Mar 16, 2023

@stefangabos please let me know if I can be of help, at least for testing.

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

No branches or pull requests

2 participants