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
Hello, I like the airdatepicker very much, but it seems impossible to clear the picker. I have found some answers but nothing works.
library(shiny) library(shinyWidgets) ui <- fluidPage( titlePanel("Updating an airDatepicker"), sidebarLayout( sidebarPanel( # Setting the initially disabled airDatepickerInput("date_picker", "Date", value = "2021-03-24"), actionButton("button", label = "Clear picker") ), mainPanel( textOutput("text") ) ) ) server <- function(input, output, session) { output$text <- renderText({ input$date_picker input$date_picker_button toString(isolate(input$date_picker)) }) # Update the picker observeEvent(input$button, { print("clicking button") updateAirDateInput(session, "date_picker", value = character(0) # value = c() # value = NULL # value = NA # value = as.Date(NA) ) }) } shinyApp(ui = ui, server = server)
I have tried several solutions but nothing works. has anyone an idea?
The text was updated successfully, but these errors were encountered:
Hi, You can clear airDatepickerInput using clear = TRUE in updateAirDateInput, e.g. :
airDatepickerInput
clear = TRUE
updateAirDateInput
updateAirDateInput(session, "date_picker", clear = TRUE)
Victor
Sorry, something went wrong.
Ah, ok thank you
No branches or pull requests
Hello,
I like the airdatepicker very much, but it seems impossible to clear the picker. I have found some answers but nothing works.
I have tried several solutions but nothing works.
has anyone an idea?
The text was updated successfully, but these errors were encountered: