Handsontable example
HTML
<div id="example1"></div>
CSS
</style><!-- Ugly Hack due to jsFiddle issue -->
<script src="https://cdn.jsdelivr.net/npm/handsontable@8.2.0/dist/handsontable.full.min.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/handsontable@8.2.0/dist/handsontable.full.min.css">
JavaScript
var example = document.getElementById('example1');
var hot = new Handsontable(example, {
data: [
[1, '10/02'],
[2, '10/02/2020'],
[8, '10/02/2020'],
['text', '10/02/2020'],
[11, '10/02/2020'],
[8, 5],
[8, '10/02/2020'],
['text', '10/02/2020'],
[12, 8],
[13, '10/02/2020'],
[15, '10/02/2020'],
[8, '10/02/2020']
],
columns: [{
type: 'numeric'
}, {
type: 'date'
}],
colWidths: 150,
colHeaders: ['X', 'Y'],
afterValidate: function(isValid, value, row){
if(!isValid){
console.log(row)
}
}
});
hot.validateColumns([0])