gridjs
gridjs copied to clipboard
Dynamic styling for tr Row doesn't work
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?
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.
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";
})
})
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.
Same question, we can customize the cell easily, we can get the column id, but what about the complete row (aka tr)?