attr_style {tokenbrowser} | R Documentation |
Create the content of the html style attribute
Description
Designed to be used together with the tag_attr function.
Usage
attr_style(...)
Arguments
... |
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). |
Value
a character vector with the content of the html style attribute
Examples
tag_attr(class = c('x','y'),
style = attr_style(`background-color` = 'rgba(255, 255, 0, 1)'))
[Package tokenbrowser version 0.1.5 Index]