gridjs icon indicating copy to clipboard operation
gridjs copied to clipboard

Dynamic styling for tr Row doesn't work

Open s-keerthi-code opened this issue 3 years ago • 2 comments

Describe the bug I have a situation where I have to add styles to a row based on the row data. However only static styling for tr is possible. How can I do this?

s-keerthi-code avatar May 10 '22 08:05 s-keerthi-code

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 10 '22 02:07 stale[bot]

I need this too, but temporary solution use grid.on(ready) function

myGrid.on('ready', () => {
      $('#myTable td:nth-child(1)').each((index, td) => {
          if (td.textContent > 0)
              td.parentElement.className = "myRowClass";
      })
})

ewwink avatar Jul 29 '22 16:07 ewwink

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 28 '22 03:09 stale[bot]

Same question, we can customize the cell easily, we can get the column id, but what about the complete row (aka tr)?

BafS avatar Jan 18 '23 20:01 BafS