forked from DivadNojnarg/OSUICode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtabler_card.Rd
56 lines (51 loc) · 1.05 KB
/
tabler_card.Rd
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tabler.R
\name{tabler_card}
\alias{tabler_card}
\title{Create a Tabler card element}
\usage{
tabler_card(
...,
title = NULL,
status = NULL,
width = 6,
stacked = FALSE,
padding = NULL
)
}
\arguments{
\item{...}{Card content.}
\item{title}{Card title.}
\item{status}{Card status color. Valid statuses are given at
\url{https://preview-dev.tabler.io/docs/colors.html}.}
\item{width}{Card width. Numeric between 1 and 12 according to the
Bootstrap 4 grid system.}
\item{stacked}{Apply a stacked effect to the card.}
\item{padding}{Card padding. Leave NULL or "sm", "md" and "lg".}
}
\value{
A card tag.
}
\description{
This is to be inserted in \link{tabler_body}.
}
\examples{
if (interactive()) {
library(shiny)
ui <- tabler_page(
tabler_body(
tabler_row(
lapply(
1:2,
tabler_card,
title = "Card",
status = "success",
"My amazing card"
)
)
)
)
server <- function(input, output) {}
shinyApp(ui, server)
}
}