Description Shiny Markdown Note Author(s) Examples
Grid sytem for 'shiny' applications or 'rmarkdown' document and to create 'htmlwidgets' matrix.
grillade
can be used in UI but also in server with
grilladeOutput
/renderGrillade
.
grillade
can be used directly in a markdown document with
htmlwidget
s or HTML tags or with Pandoc's fenced div: \:\:\:\:
and normal chunks.
CSS code used by grillade
is from KNACSS.
Victor Perrier (@dreamRs_fr)
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 | library(grillade)
box_example <- function(...) {
tags$div(
style = "box-sizing:border-box;border:5px solid #1C6EA4;height:100%;",
...
)
}
# Using autogrid: as many columns as elements
grillade(
box_example("Column 1"),
box_example("Column 2"),
box_example("Column 3"),
box_example("Column 4"),
box_example("Column 5")
)
# Custom number of cols and elements
grillade(
n_col = 3,
knack(
cols = 2,
box_example("Column 1")
),
box_example("Column 2"),
box_example("Column 3"),
knack(
cols = 2,
rows = 2,
box_example("Column 4")
),
box_example("Column 5")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.