Handsontable example
HTML
<script src="https://cdn.jsdelivr.net/npm/handsontable@14.4/dist/handsontable.full.min.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/handsontable@14.4/dist/handsontable.full.min.css" />
<script src="https://handsontable.com/docs/scripts/fixer.js"></script>
<div id="example1" class="hot "></div>
Babel + JSX
import Handsontable from 'handsontable';
import 'handsontable/dist/handsontable.full.min.css';
const container = document.querySelector('#example1');
const hot = new Handsontable(container, {
licenseKey: 'non-commercial-and-evaluation',
columns: [
{
validator: function (value, callback) {
if(!isNaN(Number(value))){
callback(true)
} else {
callback(false)
}
}
}
],
columnSummary: [
{
type: 'sum',
destinationRow: 3,
destinationColumn: 0
}
]
});