question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Applying a class to table or tbody

See original GitHub issue

Hello,

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:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

9reactions
tmorehousecommented, Nov 28, 2017

We have added in 6 new props for placing custom classes or thead, tbody, tfoot thead>tr, tbody>trandtfoot>tr`, which will be available in the next release.

1reaction
tristanbescommented, Nov 28, 2017

Thank you for this 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found