Create icon-text elements
Create icon-text elements
icontext( icon, text = list(NULL), ..., simplify = TRUE, provider = getOption("formattable.icon.provider", "glyphicon"), class_template = getOption("formattable.icon.class_template", "{provider} {provider}-{icon}") )
icon |
a character vector or list of character vectors of icon names. |
text |
a character vector of contents. |
... |
additional parameters (reserved) |
simplify |
logical to indicating whether to return the only element if a single-valued list is resulted. |
provider |
the provider of icon set. |
class_template |
a character value to specifiy to template of the class
with |
icontext("plus") icontext(c("star","star-empty")) icontext(ifelse(mtcars$mpg > mean(mtcars$mpg), "plus", "minus"), mtcars$mpg) icontext(list(rep("star",3), rep("star",2)), c("item 1", "item 2"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.