fullscreen_all {shinyfullscreen}R Documentation

Enable fullscreen for the whole page

Description

Enable fullscreen for the whole page

Usage

fullscreen_all(click_id = NULL, bg_color = "#fff")

Arguments

click_id

Id of the item that triggers the fullscreen view. This is a mandatory argument. You can specify the id of a button for instance, so that clicking on this button triggers the fullscreen view for the whole page.

bg_color

Background color when item is displayed fullscreen. Default is white.

Value

Enables the whole page to be displayed in fullscreen mode.

Examples

if (interactive()) {
### Only works in browser

library(shiny)

ui <- fluidPage(
  actionButton("test", "test"),
  plotOutput("plot"),
  fullscreen_all(click_id = "test")
)

server <- function(input, output, session) {

  output$plot <- renderPlot(plot(mtcars))

}

shinyApp(ui, server, options = list(launch.browser = TRUE))
}

[Package shinyfullscreen version 1.1.0 Index]