Hi Lauris,
I know that currently datatables doesn have such a functionality but ... can you please give me a tip how to expand this to have opportunity to summarize column(s) e.g. table like NAME, SURNAME, SALES, EARNINGS. Id like to have additional row at the bottom of the table with sum either SALES, EARNINGS each below proper column
regards Krystian
Hi Krystian,
Glad to hear that. Please don't hesitate to reach out if you need anything more from us.
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Hi Krystian,
Firstly, you can expand src/components/kt-datatable/table-partials/table-content/table-body/TableBodyRow.vue.
{{ row }}
Total: {{ properties.totalValue }}
Then in your header configuration, you can add properties to enable the total cell at the end of the table.
{
columnName: "sales",
columnLabel: "sales",
totalEnabled: true,
totalValue: ,
},
Regards, Lauris Stepanovs, Keenthemes Support Team