View source: R/f7PhotoBrowser.R
f7PhotoBrowser | R Documentation |
A nice photo browser.
f7PhotoBrowser( photos, theme = c("light", "dark"), type = c("popup", "standalone", "page"), ..., session = shiny::getDefaultReactiveDomain() )
photos |
List of photos |
theme |
Browser theme: choose either light or dark. |
type |
Browser type: choose among |
... |
Other options. |
session |
Shiny session object. |
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 = "dark", 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" ) ) }) } ) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.