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
dateInput Request. Restrict to specific dates within min and max #174
Comments
I never got any replies to this or #173. Is this the right place to raise enhancement requests? |
Hi. This is a great spot for that. We're pretty swamped with trying to get Shiny Server Pro out the door right now, so we're a bit slow on processing feature requests in Shiny. This is the right spot to put these kinds of requests, though. We'll begin prioritizing and whittling away at some of these new features over the coming months. |
Thanks Jeff. It is no big deal but definitely a feature I would be using in apps currently, if available |
Just a 6 month repeat request for this and #173 |
#173 should be easy to solve, but #174 does not seem to be possible, since the datepicker library does not support it (it is only possible to disable certain days of a week): https://github.com/eternicode/bootstrap-datepicker You may file a feature request over there. |
Thanks for that. Just took a v brief look at the documentation and it seems like they have a setDates method. http://bootstrap-datepicker.readthedocs.org/en/latest/methods.html |
Why is this closed? The bootstrap-datepicker developer had this to say "As they said, it's possible to disable certain days of the week (with daysOfWeekDisabled), so they could certainly add a feature that lets you disable every day except Friday. Enabling specific dates is also possible, though in a roundabout way, using beforeShowDay and checking each date against a list of dates to enable. #515 will make the inverse scenario (disabling specific dates) more straightforward, but it will probably need a counterpart." |
FYI, this issue hasn't been closed. It's the other one (in which you referenced this issue) that's closed. |
OK. Thanks. No wonder I couldn't open it again! |
But only slightly ajar? I would find this immensely useful. Kinda surprised if others wouldn't as well |
Almost annual update :) |
This would be a great feature. Items like quarter/month end options would be very useful as well |
Two years on! I have another app where setting allowable dates to a vector of dates would be extremely useful |
Pull requests welcome! :) |
I needed this for a project, so added a way to pass this option into the bootstrap datepicker. A more thought-out solution would be to allow passing arbitrary bootstrap datepicker options. Unfortunately the datepicker version used in Shiny appears to be somewhat outdated, and does not support passing in arbitrary Please let me know if this is an acceptable solution and I'll add a pull request. Caveats so far:
|
I am also very interested in this feature. I'd like to prepopulate the datepicker with only the dates that have data to plot. |
Any update on this issue? I´m interested in using this functionality. Thanks |
Sounds like @kadrach already implemented some extra options. @kadrach could you see if the current shiny datepicker version supports your fix? In order to add all the arbitrary options that the JS library provides, a design decision needs to be made, ideally from the Shiny team, regarding how the new
|
Fixes #174, allowing specific days of the week to be disabled.
I would like to have, say, only the Fridays clickable. So if one of the parameters could be a vector of allowable dates that would be v useful
The text was updated successfully, but these errors were encountered: