Learn R Programming

shinyMobile (version 0.7.0)

f7PhotoBrowser: Create a fremework7 photo browser

Description

Create a fremework7 photo browser

Usage

f7PhotoBrowser(
  id,
  label,
  photos,
  theme = c("light", "dark"),
  type = c("popup", "standalone", "page")
)

Arguments

id

Unique id.

label

Trigger label

photos

List of photos

theme

Browser theme: choose either light or dark.

type

Browser type: choose among c("popup", "standalone", "page").

Examples

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

 shiny::shinyApp(
   ui = f7Page(
     title = "f7PhotoBrowser",
     f7SingleLayout(
       navbar = f7Navbar(title = "f7PhotoBrowser"),
       f7PhotoBrowser(
         id = "photobrowser1",
         label = "Open",
         theme = "light",
         type = "standalone",
         photos = c(
           "https://cdn.framework7.io/placeholder/sports-1024x1024-1.jpg",
           "https://cdn.framework7.io/placeholder/sports-1024x1024-2.jpg",
           "https://cdn.framework7.io/placeholder/sports-1024x1024-3.jpg"
         )
       )
     )
   ),
   server = function(input, output, session) {}
 )
}
# }

Run the code above in your browser using DataLab