Description Usage Arguments Details Value Examples
View source: R/fullscreen_those.R
Enable fullscreen for a list of items
1 | fullscreen_those(items = list(), bg_color = "#fff")
|
items |
A list containing the ids of the items for which fullscreen is enabled. |
bg_color |
Background color when item is displayed full screen. Default is white. |
This function has to be placed AFTER the call of inputs. See Examples.
Enables the selected elements to be displayed in fullscreen mode.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | if (interactive()) {
### Only works in browser
library(shiny)
library(shinyfullscreen)
ui <- fluidPage(
plotOutput("plot"),
plotOutput("plot2"),
# Has to be placed after plot and plot2
fullscreen_those(items = list("plot", "plot2"))
)
server <- function(input, output, session) {
output$plot <- renderPlot(plot(mtcars))
output$plot2 <- renderPlot(plot(AirPassengers))
}
shinyApp(ui, server, options = list(launch.browser = TRUE))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.