Description Usage Arguments Value Examples
View source: R/fullscreen_all.R
Enable fullscreen for the whole page
1 | fullscreen_all(click_id = NULL, bg_color = "#fff")
|
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. |
Enables the whole page 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 | 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))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.