Description Usage Arguments Author(s) Examples
Build a Metro panel
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
... |
Panel content. |
title |
Panel title. |
width |
Panel width. |
height |
Panel height. |
collapsible |
Whether the panel is collapsible or not. FALSE by default. |
collapsed |
Whether the panel is collapsed at start. FALSE by default. |
draggable |
Whether the panel is draggable or not. FALSE by default. |
shadow |
Panel z-index. Numeric value expected. |
title_color |
Title background color. |
icon_color |
Icon background color. |
collapse_color |
Collapse icon background color. |
content_color |
Content background color. |
David Granjon, dgranjon@ymail.com
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 | if(interactive()){
library(shiny)
library(shinyMetroUi)
shiny::shinyApp(
ui = metroPage(
metroCol(
metroPanel(
title = "Panel title",
width = "250",
collapsible = TRUE,
draggable = TRUE,
"Raptus capios ducunt ad genetrix.
Joy doesn’t beautifully respect any believer —
but the power is what flies",
shadow = 3,
title_color = "red",
icon_color = "green",
collapse_color = "dark",
content_color = "cyan"
)
)
),
server = function(input, output) {}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.