fullscreen_those {shinyfullscreen}R Documentation

Enable fullscreen for a list of items

Description

Enable fullscreen for a list of items

Usage

fullscreen_those(items = list(), bg_color = "#fff")

Arguments

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.

Details

This function has to be placed AFTER the call of inputs. See Examples.

Value

Enables the selected elements to be displayed in fullscreen mode.

Examples

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))
}

[Package shinyfullscreen version 1.1.0 Index]