classes for thead, tbody?
See original GitHub issueIt would be great to have theadClasses and tbodyClasses among the table props.
For example I’d like to apply sticky thead to some tables with css like:
.react-bootstrap-table thead.sticky {
position: sticky;
top: 0;
background-color: #fff;
z-index: 1021;
}
However, I think I can achieve what I want with the wrapperClasses prop.
Anyway, thanks for considering and also thank you for your work!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
HTML thead class Attribute - Dofactory
JavaScript uses classes to access elements by classname. Tip: class is a global attribute that can be applied to any HTML element.
Read more ><thead>: The Table Head element - HTML - MDN Web Docs
This attribute is used to set the character to align the cells in a column on. Typical values for this include a period...
Read more >Tables - Bootstrap
Documentation and examples for opt-in styling of tables (given their prevalent use in JavaScript plugins) with Bootstrap.
Read more >HTML thead tag - W3Schools
An HTML table with a <thead>, <tbody>, and a <tfoot> element: · table · thead · tr ; How to align content inside...
Read more >thead-dark - Bootstrap CSS class
Bootstrap class: .thead-dark. <table class="table"> <thead class="thead-dark"> <tr> <th>#</th> <th>First Name</th> <th>Last Name</th> </tr> </thead> <tbody> ...
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 Free
Top 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

@flc https://react-bootstrap-table.github.io/react-bootstrap-table2/blog/2020/02/09/version-bump.html
use
headerWrapperClassesto add class ontheaduse
bodyClassesto add class ontbody@flc I add a wrapclass for
theadandtbody, thanks