forked from DivadNojnarg/OSUICode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtabler_ribbon.Rd
46 lines (42 loc) · 995 Bytes
/
tabler_ribbon.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tabler.R
\name{tabler_ribbon}
\alias{tabler_ribbon}
\title{Create a Tabler ribbon component}
\usage{
tabler_ribbon(..., position = NULL, color = NULL, bookmark = FALSE)
}
\arguments{
\item{...}{Ribbon text.}
\item{position}{Ribbon position.}
\item{color}{Ribbon color.}
\item{bookmark}{Ribbon style. FALSE by default.}
}
\value{
A ribbon shiny tag.
}
\description{
This is a good complement to \link{tabler_card}. The ribbon
parameters are listed at \url{https://preview-dev.tabler.io/docs/ribbons.html}.
}
\examples{
if (interactive()) {
library(shiny)
my_card <- tabler_card(title = "Ribbon", status = "info")
my_card$children[[1]] <- my_card$children[[1]] \%>\%
tagAppendChild(
tabler_ribbon(
icon("info-circle", class = "fa-lg"),
bookmark = TRUE,
color = "red"
)
)
ui <- tabler_page(
tabler_body(
my_card
)
)
server <- function(input, output) {}
shinyApp(ui, server)
}
}