f7Progress {shinyMobile} | R Documentation |
Framework7 progress bar
Description
f7Progress
creates a progress bar.
updateF7Progress
update a framework7 progress bar from the server side
Usage
f7Progress(id, value = NULL, color)
updateF7Progress(id, value, session = shiny::getDefaultReactiveDomain())
Arguments
id |
Progress id. Must be unique. |
value |
Progress value. Between 0 and 100. If NULL the progress bar is infinite. |
color |
Progress color. See https://framework7.io/docs/progressbar.html. |
session |
Shiny session object. |
Examples
library(shiny)
library(shinyMobile)
app <- shinyApp(
ui = f7Page(
title = "Update 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)
})
}
)
if (interactive() || identical(Sys.getenv("TESTTHAT"), "true")) app
[Package shinyMobile version 2.0.0 Index]