Learn R Programming

shinyMobile (version 0.7.0)

f7ShowNavbar: Show a framework7 navbar

Description

Show a framework7 navbar

Usage

f7ShowNavbar(session = shiny::getDefaultReactiveDomain(), animate = TRUE)

Arguments

session

Shiny session object.

animate

Whether it should be hidden with animation or not. By default is TRUE.

Examples

Run this code
# NOT RUN {
if (interactive()) {
 library(shiny)
 library(shinyMobile)

 shiny::shinyApp(
    ui = f7Page(
       title = "Accordions",
       f7SingleLayout(
          navbar = f7Navbar("Hide/Show navbar"),
          f7Segment(
             f7Button(inputId = "hide", "Hide navbar", color = "red"),
             f7Button(inputId = "show", "Show navbar", color = "green"),
          )
       )
    ),
    server = function(input, output, session) {

       observeEvent(input$hide, {
          f7HideNavbar()
       })

       observeEvent(input$show, {
          f7ShowNavbar()
       })
    }
 )
}
# }

Run the code above in your browser using DataLab