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.

Selectively add class/style to rows

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Reactions:17
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

6reactions
gkgithubcommented, Dec 9, 2016

we want this feature too. we couldn’t able to customize the specific rows.

1reaction
aegyed91commented, Jan 18, 2017

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

Read more comments on GitHub >

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

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