Apologies for any language mistakes, as I am Russian :)I am using Tabulator but facing an issue where the table footer is not being printed. I am also unable to retrieve data from the footer. The footer simply doesn't show up and I'm unsure of what the problem might be. colsole log , table example
var table = new Tabulator("#uchet-table", {
layout:"fitColumns",
movableRows:false,
movableColumns: true,
downloadConfig:{
columnCalcs:true,
},
groupBy:["object"],
tooltips : true, // Tooltips on cell hover
columnCalcs:"both",
groupClosedShowCalcs:true,
groupToggleElement:"arrow", //arrow, header, false
placeholder:"No data available",
persistence:{
sort:false,
filter:false,
columns:false,
},
persistenceID:"examplePerststance",
groupStartOpen:true,
columns:[
{title:" ", field:"idact", sorter:"number", width:30},
{title:"Month", field:"mouth", sorter:"string"},
{title:"Object", field:"object", sorter:"string"},
{title:"Act/Number", field:"nomer_acta", sorter:"string",
bottomCalc:function(values,data,calcParams){
console.log(data);
return "Total:";
}
},
{title:"Amount without VAT", field:"sum_s_koef", formatter:"money", width:180, align:"center", bottomCalc:"sum", formatterParams:paramMoney,
bottomCalcParams:{precision: 2},
bottomCalcFormatter: "money",
bottomCalcFormatterParams:paramMoney,
},
{title:"VAT 20%", field:"nds", formatter:"nds", width:180, align:"center", bottomCalc:"sum", formatterParams:paramMoney,
bottomCalcParams:{precision: 2},
bottomCalcFormatter: "money",
bottomCalcFormatterParams:paramMoney,
},
{title:"Total with VAT", field:"sum_s_nds", formatter:"money", width:180, align:"center", bottomCalc:"sum", formatterParams:paramMoney,
bottomCalcParams:{precision: 2},
bottomCalcFormatter: "money",
bottomCalcFormatterParams:paramMoney,
},
],
printAsHtml:true,
});