I want to enable this Actionbutton functioning:
actionButton(inputId='more', label="Learn More",icon = icon("th"),
onclick = textOutput('more_button'))
the problem is 'more_button' value needs to be in quotes, whenever I render the text I get it without quotes
I tried these solutions but none of them managed to solve the problem:
first try :
more_button_text <- reactive({
if (input$mySliderText %in% info_360$press )
{
info_360 %>%
filter(press == input$mySliderText)%>%
pull(more)
the value of more is:
}
})
server <- function(input, output) {
output$more_button <- renderText({ paste0('"', more_button_text(), '"') })
}
second try :
more_button_text <- reactive({
if (input$mySliderText %in% info_360$press )
{
info_360 %>%
filter(press == input$mySliderText)%>%
pull(more)
}
})
more_button_text1 <- reactive({
cat(sprintf('"%s",',more_button_text() ))
})
server <- function(input, output) {
output$more_button <- renderText({ paste0('"', more_button_text1(), '"') })
}
or suggest to me please any alternative way to make this action button work?