tiles: Add tiles

Description Usage Arguments Author(s) Examples

Description

Add masonry-like tiles.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
bulmaTileAncestor(...)

bulmaTileParent(..., vertical = FALSE, width = NULL)

bulmaTileChild(
  ...,
  title = "",
  subtitle = "",
  color = NULL,
  type = "notification"
)

Arguments

...

any element.

vertical

set to TRUE if you want to stack tiles vertically.

width

define width of tile.

title, subtitle

tile title and subtitle.

color

color of tile.

type

type of tile: notification or box.

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
38
39
40
41
if(interactive()){
library(shiny)

shinyApp(
  ui = bulmaPage(
   bulmaTileAncestor(
     bulmaTileParent(
       vertical = TRUE,
       bulmaTileChild(
         bulmaTitle("Tile 1"),
         tags$p("some graph"),
         color = "primary"
       ),
       bulmaTileChild(
         bulmaTitle("Tile 2"),
         plotOutput("graph")
       )
     ),
     bulmaTileParent(
       bulmaTileChild(
         bulmaTitle("Tile 3"),
         tags$p("some other graph")
       ),
       bulmaTileChild(
         bulmaTitle("Tile 5"),
         tags$p("some other graph")
       ),
       bulmaTileChild(
         bulmaTitle("Tile 6"),
         tags$p("some other graph")
       )
     )
   )
  ),
  server = function(input, output) {
    output$graph <- renderPlot({
      plot(x = runif(20, 5, 10), y = runif(20, 10, 12))
    })
  }
)
}

JohnCoene/shinybulma documentation built on Nov. 23, 2021, 6:20 p.m.