fsTrigger: Fullscreen Triggers

Description Usage Arguments Examples

Description

Create a button or a link that triggers the fullscreen.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
fsButton(
  ...,
  id = NULL,
  class = NULL,
  .target = NULL,
  .type = "default",
  .tag = htmltools::a
)

fsLink(..., id = NULL, class = NULL, .target = NULL, .tag = htmltools::a)

Arguments

...

Arguments to pass to the button .tag.

id

Id of the button.

class

Class to assign to the button.

.target

Id of target element to make full screen, if NULL makes the entire page full screen.

.type

Button type, e.g.: success.

.tag

Htmltools or shiny tag to use to create the button. Default to <a>.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(shiny)

ui <- fluidPage(
	h1("Hello fullscreen"),
	fsButton("Make fullscreen")
)

server <- function(...){}

if(interactive())
 shinyApp(ui, server)

JohnCoene/fullscreen documentation built on Dec. 18, 2021, 1:40 a.m.