Build a Metro panel
metroPanel( ..., title = NULL, width = NULL, height = NULL, collapsible = FALSE, collapsed = FALSE, draggable = FALSE, shadow = NULL, title_color = NULL, icon_color = NULL, collapse_color = NULL, content_color = NULL )
| ... | 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. |
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) {} ) }