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
When using selectizeInput and updateSelectizeInput to update the choices, the update does not appear when using with a material_page.
selectizeInput
updateSelectizeInput
material_page
An example:
shinyApp( material_page(fluidPage( material_button("add","Add 10"), selectizeInput("foo", "Foo", choices = c("a","b")), textOutput("text") )), function(input, output, session) { choices <- reactive({ c("a", "b", (0:(10*as.numeric(input$add)))) }) output$text <- renderText({ choices() }) observe({ updateSelectizeInput(session, 'foo', choices = choices(), server = TRUE) }) } )
It gets resolved when adding the selectizeInput from server side
shinyApp( material_page(fluidPage( material_button("add","Add 10"), uiOutput("TT"), textOutput("text") )), function(input, output, session) { choices <- reactive({ c("a", "b", (0:(10*as.numeric(input$add)))) }) output$text <- renderText({ choices() }) output$TT<-renderUI({ selectizeInput("foo", "Foo", choices = c("a","b")) }) observe({ updateSelectizeInput(session, 'foo', choices = choices(), server = TRUE) }) } )
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When using
selectizeInput
andupdateSelectizeInput
to update the choices, the update does not appear when using with amaterial_page
.An example:
It gets resolved when adding the
selectizeInput
from server sideThe text was updated successfully, but these errors were encountered: