attr_style {tokenbrowser} | R Documentation |
Designed to be used together with the tag_attr function.
attr_style(...)
... |
named arguments are used as settings in the html style attribute, with the name being the name of the setting (e.g., background-color). All arguments must be vectors of the same length. NA values can be used to ignore a setting, and if all settings are NA then NA is returned (instead of an empty string for style settings). |
a character vector with the content of the html style attribute
tag_attr(class = c('x','y'), style = attr_style(`background-color` = 'rgba(255, 255, 0, 1)'))