We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi!
Is there a reason why updateDateInput() doesn't have the datesdisabled parameter enabled?
updateDateInput()
datesdisabled
Similarly, why dateRangeInput() doesn't have the datesdisabled parameter enabled?
dateRangeInput()
These 2 options would be amazingly useful to a use case I'm working on.
I'm currently using shiny 1.8.0 (latest stable version).
Thanks!
The text was updated successfully, but these errors were encountered:
Btw, I can share a workaround that worked for me but is less ideal than having the parameter enabled:
uiOutput("date_range_start_output"), uiOutput("date_range_end_output")
# Within an observe() that overwrites reactiveValues from rv dates <- "VECTOR WITH DATES" start_date <- as.Date(min(dates, na.rm = TRUE), "%Y-%m-%d") end_date <- as.Date(max(dates, na.rm = TRUE), "%Y-%m-%d") rv$datesdisabled <- as.Date(start_date:end_date)[!as.Date(start_date:end_date) %in% as.Date(dates)] if (length(rv$datesdisabled) == 0) rv$datesdisabled <- NULL updateDateInput(session, "date_range_start", value = start_date, min = start_date, max = end_date) updateDateInput(session, "date_range_end", value = end_date, min = start_date, max = end_date) # Update datesdisabled output$date_range_start_output <- renderUI({ dateInput("date_range_start", "First date:", width = "100%", datesdisabled = rv$datesdisabled) }) output$date_range_end_output <- renderUI({ dateInput("date_range_end", "Last date:", width = "100%", datesdisabled = rv$datesdisabled) })
Sorry, something went wrong.
No branches or pull requests
Hi!
Is there a reason why
updateDateInput()
doesn't have thedatesdisabled
parameter enabled?Similarly, why
dateRangeInput()
doesn't have thedatesdisabled
parameter enabled?These 2 options would be amazingly useful to a use case I'm working on.
I'm currently using shiny 1.8.0 (latest stable version).
Thanks!
The text was updated successfully, but these errors were encountered: