Handsontable example
HTML
<div>
<div id="example-calculations" class="hot handsontable htRowHeaders htColumnHeaders"></div>
</div>
CSS
</style><!-- Ugly Hack due to jsFiddle issue -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/handsontable.full.min.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/handsontable.full.min.css">
JavaScript
var container = document.getElementById('example-calculations');
var hot = new Handsontable(container, {
data: [
[4,6,7],[6,7,8],[4,6,7],[null],[6,7,8],[4,6,7],[6,7,8],[4,6,7],[6,7,8],[null]
],
colHeaders: true,
rowHeaders: true,
columnSummary: [
{
destinationRow: 3,
destinationColumn: 0,
type: 'sum',
forceNumeric: true
},
{
destinationRow: 9,
destinationColumn: 0,
type: 'min',
forceNumeric: true
}
]
});