Learn R Programming

shinyMobile (version 0.1.0)

f7Popup: Create a f7 popup

Description

Create a f7 popup

Usage

f7Popup(..., id, label = "Open", title)

Arguments

...

Content.

id

Popup unique id.

label

Popup trigger label.

title

Title.

Examples

Run this code
# NOT RUN {
if (interactive()) {
 library(shiny)
 library(shinyMobile)
 shiny::shinyApp(
   ui = f7Page(
     color = "pink",
     title = "My app",
     f7SingleLayout(
      navbar = f7Navbar(
        title = "f7Popup",
        hairline = FALSE,
        shadow = TRUE
      ),
      f7Popup(
       id = "popup1",
       label = "Open",
       title = "My first popup",
       "Lorem ipsum dolor sit amet, consectetur adipiscing elit.
         Quisque ac diam ac quam euismod porta vel a nunc. Quisque sodales
         scelerisque est, at porta justo cursus ac"
      )
     )
   ),
   server = function(input, output) {}
 )
}
# }

Run the code above in your browser using DataLab