table
table copied to clipboard
how to sum of data in table in react js
Describe the bug

Your minimal, reproducible example
vscode
Steps to reproduce
i am unable to resolve this problem
Expected behavior
i am unable to resolve this problem
How often does this bug happen?
Only once
Screenshots or Videos
No response
Platform
linux
react-table version
18.2.0
TypeScript version
4.9.5
Additional context
No response
Terms & Code of Conduct
- [X] I agree to follow this project's Code of Conduct
- [X] I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
I assume you have the data since you have shown it in the table. Calculate the sum of the amount using the data and show it in the ui.
Also, you can have a look at here
{
accessorKey: 'accessor_key',
footer: ({ table }) => table.getFilteredRowModel().rows.reduce((total, row) => total + row.getValue('accessor_key'), 0),
}```
@talatkuyuk how do we use the built in aggregatorSum?
@talatkuyuk how do we use the built in aggregatorSum?
I've got this same question. There's mention of several built-in functions.