metroPanel: Create a Metro 4 Panel

Description Usage Arguments Author(s) Examples

View source: R/metroPanel.R

Description

Build a Metro panel

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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
)

Arguments

...

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.

Author(s)

David Granjon, dgranjon@ymail.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
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) {}
 )
}

RinteRface/shinyMetroUi documentation built on Dec. 31, 2019, 8:47 a.m.