fullscreen_this {shinyfullscreen} | R Documentation |
Enable fullscreen for a specific item
Description
Enable fullscreen for a specific item
Usage
fullscreen_this(ui_element, click_id = NULL, bg_color = "#fff")
Arguments
ui_element |
A UI element that should be displayed fullscreen. |
click_id |
Id of the item that triggers the fullscreen view. By default, it is the id of |
bg_color |
Background color when item is displayed fullscreen. Default is white. |
Value
Enables the selected element to be displayed in fullscreen mode.
Examples
if (interactive()) {
### Only works in browser
library(shiny)
ui <- fluidPage(
actionButton("test", "test"),
fullscreen_this(plotOutput("plot"))
)
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]