update a framework7 progress bar from the server side
updateF7Progress(id, value, session = shiny::getDefaultReactiveDomain())
id | Unique progress bar id. |
---|---|
value | New value. |
session | Shiny session object. |
if (interactive()) { library(shiny) library(shinyMobile) shiny::shinyApp( ui = f7Page( title = "Progress", f7SingleLayout( navbar = f7Navbar(title = "f7Progress"), f7Block( f7Progress(id = "pg1", value = 10, color = "blue") ), f7Slider( inputId = "obs", label = "Progress value", max = 100, min = 0, value = 50, scale = TRUE ) ) ), server = function(input, output, session) { observeEvent(input$obs, { updateF7Progress(id = "pg1", value = input$obs) }) } ) }