So do I have to make empty row first to insert there a summary row? I am getting data from customer api and passing it hot by using component
{ <HotTable settings={{
dataSchema: {name: null, email: null, rola: null},
data: rows,
columns: [
{data: ‘data’, editor: false, type: ‘text’,},
{data: ‘imie_pracownika’, editor: false, type: ‘text’,},
{data: ‘nazwisko_pracownika’, editor: false, type: ‘text’,},
{data: ‘grupa_pracownika’, editor: false, type: ‘text’,},
{data: ‘roboczogodziny’, editor: false, type: ‘text’,},
{data: ‘suma_wyplaty’, editor: false, renderer: “numeric”,},
],
stretchH: “all”,
allowEmpty: true,
fillHandle: false,
colHeaders: [‘Data’ ,‘Imie’, ‘Nazwisko’, ‘Grupa’, ‘Roboczogodziny’, ‘Wyplata’],
columnSorting: true,
sortIndicator: true,
columnSummary: [
{
destinationRow: 0,
destinationColumn: 0,
type: ‘sum’,
forceNumeric: true,
reversedRowCoords: true,
},
],
}}}