fullscreen_those: Enable fullscreen for a list of items

Description Usage Arguments Details Value Examples

View source: R/fullscreen_those.R

Description

Enable fullscreen for a list of items

Usage

1
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

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

shinyfullscreen documentation built on Jan. 16, 2021, 5:17 p.m.