A nice photo browser.

f7PhotoBrowser(
  photos,
  theme = c("light", "dark"),
  type = c("popup", "standalone", "page"),
  ...,
  session = shiny::getDefaultReactiveDomain()
)

Arguments

photos

List of photos

theme

Browser theme: choose either light or dark.

type

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

...

Other options.

session

Shiny session object.

Examples

if (interactive()) { library(shiny) library(shinyMobile) shinyApp( ui = f7Page( title = "f7PhotoBrowser", f7SingleLayout( navbar = f7Navbar(title = "f7PhotoBrowser"), f7Button(inputId = "togglePhoto", "Open photo") ) ), server = function(input, output, session) { observeEvent(input$togglePhoto, { 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" ) ) }) } ) }