Ngx-datatable: Selectively add class/style to rows

Created on 6 Dec 2016  路  12Comments  路  Source: swimlane/ngx-datatable

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)

Easy Enhancement Low

Most helpful comment

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

All 12 comments

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

Same here. I'd really appreciate this option

Second it

Actually, this is possible. Can one of you guys PR it? I'd implement something like I did with selectCheck reference.

Would there be a way to do this using expressive markup instead of a callback handler? I can do it for cells with <ngx-datatable-column>, how about a <ngx-datatable-row> where styles could be added with standard Angular syntax?

Ya, been considering adding a row directive for this and other stuff. Probably in next major release will do it.

Ya, been considering adding a row directive for this and other stuff.

Atm i need to find a way to add an extra 1st row with predefined cells. Each cell will contain an input and will filter the given column.

There would be many use cases for this.

related: #115 #216

For that, I would make the header cell contain the filter. I've done this in my app actually.

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

Very nice! If you have time a demo in the docs would be cool :)

+1

Done in 7.0!

Was this page helpful?
0 / 5 - 0 ratings