Usually used along with card
,
card2
, and card_tabset
. See tools
parameters in these functions accordingly.
Details
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.