container: Add containers

Description Usage Arguments Details Author(s) Examples

Description

Add a container.

Usage

1
2
3
4
5

Arguments

...

any element.

class

Class of element.

Details

Pass within your grid, sections or slides.

Author(s)

John Coene, jcoenep@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
if(interactive()){
  library(shiny)

  ui <- fullPage(
    center = TRUE,
    fullSection(
      h1("Containers")
    ),
    fullSection(
      h1("Without container"),
      plotOutput("plot1")
    ),
    fullSection(
      fullContainer(
        h1("With container"),
        plotOutput("plot2"),
        pre(
          code(
            "fullContainer()"
          )
        )
      )
    )
  )

  server <- function(input, output){
    output$plot1 <- renderPlot({
      plot(mtcars$wt, mtcars$mpg)
    })

    output$plot2 <- renderPlot({
      plot(mtcars$wt, mtcars$mpg)
    })
  }

  shinyApp(ui, server)
}

JohnCoene/fullPage documentation built on Sept. 3, 2021, 8:33 p.m.