Add masonry-like tiles.
bulmaTileAncestor(...) bulmaTileParent(..., vertical = FALSE, width = NULL) bulmaTileChild( ..., title = "", subtitle = "", color = NULL, type = "notification" )
... | any element. |
---|---|
vertical | set to |
width | define width of tile. |
title, subtitle | tile title and subtitle. |
color | color of tile. |
type | type of tile: notification or box. |
John Coene, jcoenep@gmail.com
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)) }) } ) }