Applying a class to table or tbody
See original GitHub issueHello,
After reading the doc and trying on my application I have two questions:
1/ How to apply a class on the table and only use that class ? because the class
props will add the custom class to the “default” bootstrap4 and I don’t want that. Ex:
<table class="my-custom-class c-table table b-table table-striped table-hover></table>
// instead of
<table class="my-custom-class"></table>
2/ How to apply a class on the tbody
node ? I don’t see any options to achieve that.
Thank you
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
HTML tbody class Attribute - Dofactory
The class attribute assigns one or more classnames to the <tbody> tag. Classnames are defined in a stylesheet or in a local <style>...
Read more >Apply a certain class in tbody tag - javascript - Stack Overflow
I have a function that hides the rows of the table when I search certain word. table.find ( ...
Read more ><tbody>: The Table Body element - HTML - MDN Web Docs
The HTML element encapsulates a set of table rows ( elements), indicating that they comprise the body of the table ( ).
Read more >How to Style a Table with CSS | Webucator
Specifies the background image. Specifies the background color. Specifies the width of the table , th , or td .
Read more >Default styling options - DataTables
These class names should be applied to the table element: ... if the text alignment should be applied to the cells in the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We have added in 6 new props for placing custom classes or
thead
,tbody
,tfoot
thead>tr
, tbody>trand
tfoot>tr`, which will be available in the next release.Thank you for this 😃