tablerCard: Create a Boostrap 4 card

Description Usage Arguments Author(s) Examples

Description

Build a tabler card

Usage

1
2
3
4
tablerCard(..., title = NULL, options = NULL, footer = NULL,
  status = NULL, statusSide = c("top", "left"), collapsible = TRUE,
  collapsed = FALSE, closable = TRUE, zoomable = TRUE, width = 6,
  overflow = FALSE)

Arguments

...

Body content

title

Card title. If NULL, the header is not displayed.

options

Card extra header elements.

footer

Card footer. NULL by default. Not displayed if NULL.

status

Card status. NULL by default. See https://preview.tabler.io/docs/colors.html for valid statuses.

statusSide

Status side: "top" or "left".

collapsible

Whether the card is collapsible. TRUE by default.

collapsed

Whether to collapse the card at start. FALSE by default.

closable

Whether the card is closable. TRUE by default.

zoomable

Whether the card is zoomable. TRUE by default.

width

Card width. 6 by default. See Bootstrap grid system. If NULL, the card is full width.

overflow

Whether to set up a x and y overflow. FALSE by default. Useful in case the card contains large tables.

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
27
28
if(interactive()){
 library(shiny)
 library(tablerDash)

 shiny::shinyApp(
   ui = tablerDashPage(
    navbar = NULL,
    footer = NULL,
    title = "test",
    body = tablerDashBody(
     tablerCard(
      title = "Card",
      sliderInput("obs", "Number of observations:",
      min = 0, max = 1000, value = 500
      ),
      plotOutput("distPlot"),
      status = "success",
      statusSide = "left"
     )
    )
   ),
   server = function(input, output) {
   output$distPlot <- renderPlot({
    hist(rnorm(input$obs))
   })
  }
 )
}

tablerDash documentation built on May 2, 2019, 9:58 a.m.