Datatables classes and style functions
HI:) I think I read somewhere that the classes and style functions for the datatables columns would have access to the row data as a second parameter. However, I get undefined i.e. classes(cell, row). Thanks:)
How are you using them?
Hi. I want to assign certain cell’s background color based on the data of other columns or properties in the row object. However, it might be better for me to use templates, but I’m not exactly sure how to fit the template into the cell, i.e. remove the default padding. Also, not completely related, but it would also be great if we had access to the row data in the sort function, as I would like to sort a column based on some other property in the row object. Thanks so much in advance.