You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have a Conditional Panel with a numericRangeInput with a label. When I try to pass a new label through an updateNumericRangeInput, it is not updating. The value argument in the updateNumericRangeInput does update though.
Is this possible to fix this please? Thanks! :)
The text was updated successfully, but these errors were encountered:
Meanwhile as an alternative you could replace the label in your UI element with a textOutput and use renderText on it to change its value.
library(shiny)
ui<- fluidPage(
shinyWidgets::numericRangeInput('a', textOutput('aLabel'), value= c(0, 5)),
actionButton('change', label='Change label')
)
server<-function(input, output, session) {
# reactive text value of our labelrangeLabel<- reactiveVal('BEFORE label')
# actual rendering of the text valueoutput$aLabel<- renderText({ rangeLabel() })
observeEvent(input$change, {
# change value of reactive variable# that way renderText is called automatically
rangeLabel('AFTER label')
})
}
shinyApp(ui, server)
Or, if you're using shinyjs, html() can be pretty convenient.
Hi,
I have a Conditional Panel with a numericRangeInput with a label. When I try to pass a new label through an updateNumericRangeInput, it is not updating. The value argument in the updateNumericRangeInput does update though.
Is this possible to fix this please? Thanks! :)
The text was updated successfully, but these errors were encountered: