Description Usage Arguments Value Examples
This is a good complement to tabler_card. The ribbon parameters are listed at https://preview-dev.tabler.io/docs/ribbons.html.
1 | tabler_ribbon(..., position = NULL, color = NULL, bookmark = FALSE)
|
... |
Ribbon text. |
position |
Ribbon position. |
color |
Ribbon color. |
bookmark |
Ribbon style. FALSE by default. |
A ribbon shiny tag.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.