data().sum() Undefined

data().sum() Undefined

toomanyloginstoomanylogins Posts: 28Questions: 9Answers: 0
edited June 4 in DataTables 2

I have loaded the sum() plugin from

<script src="https://cdn.datatables.net/plug-ins/2.3.1/api/sum().js"></script>

However I am getting

const sum = itemTable.column(4).data().sum() sum as undefined,

itemTable.column(4).data() is valid and the plugin has loaded in browser network.

Error in console

Uncaught TypeError: itemTable.column(...).data().sum is not a function

Do I need to do anything else to use this ?
Thanks

This question has an accepted answers - jump to answer

Answers

Sign In or Register to comment.