Using footerCallback sum example, is it possible to exclude certain rows from the sum totals?

Using footerCallback sum example, is it possible to exclude certain rows from the sum totals?

mgrellmgrell Posts: 2Questions: 1Answers: 0

What I am trying to accomplish is a "What If" function where users can click-to-exclude rows which are visually coloured but still visible. I need these selected rows to be excluded from the sums in the footer.

I am adding the class 'what-if' to the <tr>

For the life of me I cannot figure out how to omit them from the summation though. Any ideas or suggestions would be greatly appreciated.

As I said, I'm using the DataTables example code to sum my various columns.

Thanks.

Answers

  • mgrellmgrell Posts: 2Questions: 1Answers: 0

    After posting I delved into .column.data() and realized I could easily create my own sum function that had the info to ignore the selected rows vs using .reduce. Answered my own question ;-)

This discussion has been closed.