Description Usage Arguments Value Examples
Designed to be used together with the tag_attr function.
1 |
... |
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
1 2 | tag_attr(class = c('x','y'),
style = attr_style(`background-color` = 'rgba(255, 255, 0, 1)'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.