I need an excact 2 day range for ShinyWidgets airDatepickerInput. Meaning I can only select 1 day in front of the first date selected.
How to update maxDate and minDate options for input$Dates[2] to be reactive and equal input$Dates[1] + 1
Are there better methods? How do you use updateAirDateInput ?
# Libraries
library(shiny)
library(shinyWidgets)
# UI
ui <- navbarPage(title = "Title - V1.0",
tabPanel("Tab 1",
sidebarLayout(
sidebarPanel(width = 4,
airDatepickerInput(inputId = "Dates",
multiple = 2,
range = TRUE)),
mainPanel())))
# Server
server <- function(input, output, session) {}
# Create a Shiny app object
shinyApp(ui = ui, server = server)