Apply function on "table header names"

Apply function on "table header names"

hpegmslicensemgmthpegmslicensemgmt Posts: 23Questions: 8Answers: 0

Dear all,
I'm currently using the createdCell function of datatables to colorize the tables depending on the value of the cell and it works perfectly well when I know in which column the data is being located by using the "targets" option.

However, I now have a new challange, where I have dynamically generated tables and where the location of the "targets" can be different. (eg. table 1 = pos 5; table 2 = pos 4 etc.)

The tables have the same Header Names eg. <th>Status</th> ...

Is there a clever way to translate the Header Names into Column Indexes ?

Best regards,
David

Answers

Sign In or Register to comment.