Right now the tab_style() method allows for the addition of CSS style rules in targeted locations / tags. You can target various locations with loc.*, and use style.* (like style.text()) to generate a subset of available style rules.
And while we populate tags with CSS classes (which works in conjunction with our SCSS style sheet, modifiable through use of tab_options()) during HTML rendering, there is no way for the user to use the Great Tables API to simply add classes.
Allowing the user to add classes would be useful especially since we could utilize CSS classes not generated through Great Tables (i.e., available elsewhere in the DOM). We need to expose options for whether CSS styles/classes should be appended to existing (current behavior) or should force a replacement.
Right now the
tab_style()
method allows for the addition of CSS style rules in targeted locations / tags. You can target various locations withloc.*
, and usestyle.*
(likestyle.text()
) to generate a subset of available style rules.And while we populate tags with CSS classes (which works in conjunction with our SCSS style sheet, modifiable through use of
tab_options()
) during HTML rendering, there is no way for the user to use the Great Tables API to simply add classes.Allowing the user to add classes would be useful especially since we could utilize CSS classes not generated through Great Tables (i.e., available elsewhere in the DOM). We need to expose options for whether CSS styles/classes should be appended to existing (current behavior) or should force a replacement.