Selectively add class/style to rows
See original GitHub issueI’m submitting a … (check one with “x”)
[ ] bug report => search github for a similar issue or PR before submitting
[ x ] feature request
[ ] support request => Please do not submit support request here
What is the motivation / use case for changing the behavior? It would be nice to be able to style a row depending on the value of one of it’s properties (column value)
Issue Analytics
- State:
- Created 7 years ago
- Reactions:17
- Comments:12 (7 by maintainers)
Top Results From Across the Web
What is the best way to conditionally apply a class?
I am currently duplicating (by hand) the li code and adding the class to one of the li tags and using ng-show and...
Read more >Use CSS to change the style of each row depending on the ...
Use CSS to change the style of each row depending on the content · 1. Display element B if element A is empty...
Read more >Adding classes to elements with CSS Hero
With CSS Hero you can easily add classes to elements without ... our goal is to share the same style across the widgets...
Read more >Pseudo-classes - CSS: Cascading Style Sheets | MDN
The specificity-adjustment pseudo-class matches any element that matches any of the selectors in the list provided without adding any ...
Read more >A Complete Guide to the Table Element | CSS-Tricks
If that layout style solves a problem and has no negative order implications, ... You could add a class name to a row...
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 want this feature too. we couldn’t able to customize the specific rows.
after searching the issues i did the same, needed to make the header template sortable tho
saw a lot of ppl complaining about un-sortable header templates so i reference TMP solution: https://github.com/swimlane/ngx-datatable/issues/431#issuecomment-273335200
it looks sexy tbh: http://i.imgur.com/0ugYrK0.png