Toggle f7Fabs on the server side.

updateF7Fabs(id, session = shiny::getDefaultReactiveDomain())

Arguments

id

The id of the input object.

session

The Shiny session object, usually the default value will suffice.

Examples

if (interactive()) { library(shiny) library(shinyMobile) shinyApp( ui = f7Page( title = "Update f7Fabs", f7SingleLayout( navbar = f7Navbar(title = "Update f7Fabs"), f7Button(inputId = "toggleFabs", label = "Toggle Fabs"), f7Fabs( position = "center-center", id = "fabs", lapply(1:3, function(i) f7Fab(inputId = i, label = i)) ) ) ), server = function(input, output, session) { observe(print(input$fabs)) observeEvent(input$toggleFabs, { updateF7Fabs(id = "fabs") }) } ) }