How to update button labels in R Shiny? -


the r shiny website has great example of how update labels , values of variety of input types based on user input. however, couldn't find buttons. specifically, how update label button based on user input?

you can dynamically create button so, updating labels @ same time:

library(shiny)  ui =(pagewithsidebar(   headerpanel("test shiny app"),   sidebarpanel(     textinput("sample_text", "test", value = "0"),     #display dynamic ui     uioutput("my_button")),   mainpanel() ))  server = function(input, output, session){   #make dynamic button   output$my_button <- renderui({     actionbutton("action", label = input$sample_text)   }) } runapp(list(ui = ui, server = server)) 

Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -