Open Dashman99 opened 7 years ago
Cant see any reason a column is dynamic but I'm sure it would work as long as your function returns the same string as the corresponding Td column
this doesn't work. Shame you say you can't see any reason for this, I can ! It would be great if the columns array / Th had an optional value= parameter, to supply a function that can be called with that column's row data values to apply (say) formatting, or to translate, or to compute a value.
For example if I have a column called
Number
and a columnTotal
, can I create a column which displays the percentage of totalPercentOfTotal
?Something like this, assuming I had a function called
getPercentOfTotal(a, b)