View source: R/img_intensify.R
img_intensify | R Documentation |
Viewing images on full screen
img_intensify(target = "img")
target |
By default, the function intensifies all the images (<img> tag) however the user can target specific classes |
images that when clicked can be viewed on full screen no matter their initial size
if (interactive()) {
ui <- fluidPage(
h1("Click on the image to view it in full screen"),
img(src = "https://www.r-project.org/logo/Rlogo.png",
width = "200px", height = "200px"),
img_intensify()
)
server <- function(input, output) {
}
shinyApp(ui = ui, server = server)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.