| as_badge | R Documentation |
Usually used along with card,
card2, and card_tabset. See tools
parameters in these functions accordingly.
as_badge(badge = NULL)
badge |
characters, |
When badge is NULL or empty, then as_badge
returns empty strings. When badge is a "shiny.tag" object,
then 'HTML' class 'right' and 'badge' will be appended.
When badge is a string, it should follow the syntax of
"message|class". The text before "|" will be the badge
message, and the text after the "|" becomes the class string.
'HTML' tags
# Basic usage
as_badge("New")
# Add class `bg-red` and `no-padding`
as_badge("New|bg-red no-padding")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.