console
var generateDataObj = function(rows, columns, additionalRows) {
if (additionalRows === void 0) {
additionalRows = true;
}
var data = [];
var number = 0;
if (!rows) {
rows = 3;
}
if (!columns) {
columns = 7;
}
for (var i = 0; i < rows; i++) {
data[i] = [];
for (var j = 0; j < columns; j++) {
data[i][j] = number++;
}
}
if (additionalRows) {
for (i = 0; i < 2; i++) {
data.push([]);
}
}
return data;
};
var example1 = document.getElementById('example1');
var hot = new Handsontable(example1, {
data: generateDataObj(),
colHeaders: true,
rowHeaders: true,
columnSummary: [
{
destinationRow: 4,
destinationColumn: 1,
type: 'min'
},
{
destinationRow: 0,
destinationColumn: 3,
reversedRowCoords: true,
type: 'max'
},
{
destinationRow: 4,
destinationColumn: 5,
type: 'sum',
forceNumeric: true
}
]
});
<div>
<div id="example1" class="hot handsontable htRowHeaders htColumnHeaders"></div>
</div>
</style>
<script src="https://docs.handsontable.com/pro/5.0.0/components/handsontable-pro/dist/handsontable.full.min.js"></script>
<link type="text/css" rel="stylesheet" href="https://docs.handsontable.com/pro/5.0.0/components/handsontable-pro/dist/handsontable.full.min.css">