Bootstrap styles for data frame (instead of kable, knitr) #654
Answered
by
jjallaire
sarah-h-cohen
asked this question in
Q&A
|
Is it possible to assign Bootstrap classes to the tables produced from a code chunk? I saw how to do it in the context of the markdown, but wasn't sure it was possible in results. (This might be an alternative to kable / knitr tables even though they're not paginated.) |
Answered by
jjallaire
Apr 17, 2022
Replies: 1 comment
|
We currently automatically assign the |
0 replies
Answer selected by
sarah-h-cohen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We currently automatically assign the
table-smandtable-stripedclasses to markdown tables (including ones in results). In turn, kable should be producing markdown tables by default so you should see these classes applied (unless you've explicitly turned on HTML output or are using e.g. kableExtra). It's on our list to make these classes customizable (e.g. opt out of these styles and/or add other styles).