Create a framework7 menu

f7Menu(...)

Arguments

...

Slot for f7MenuItem or f7MenuDropdown.

Examples

if (interactive()) { library(shiny) library(shinyMobile) shiny::shinyApp( ui = f7Page( title = "My app", f7SingleLayout( navbar = f7Navbar( title = "f7Menu", hairline = FALSE, shadow = TRUE ), f7Button("toggle", "Toggle menu"), f7Menu( f7MenuDropdown( id = "menu1", label = "Menu 1", f7MenuItem(inputId = "item1", "Item 1"), f7MenuItem(inputId = "item2", "Item 2"), f7MenuDropdownDivider(), f7MenuItem(inputId = "item3", "Item 3") ) ) ) ), server = function(input, output, session) { observeEvent(input$toggle, { f7OpenMenuDropdown("menu1") }) observeEvent(input$item1, { f7Notif(text = "Well done!") }) observe({ print(input$item1) print(input$menu1) }) } ) }