Handsontable example

by Aleksandra Maria Budnik

HTML

<div id="example1"></div>

CSS

body .handsontable .myCell {
    background: pink;
    font-weight: bold;
}
</style>

<script src="https://cdn.jsdelivr.net/npm/handsontable@7.4.2/dist/handsontable.full.min.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/handsontable@7.4.2/dist/handsontable.full.min.css">

JavaScript

var example = document.getElementById('example1');
  var hot = new Handsontable(example, {
    data: Handsontable.helper.createSpreadsheetData(1000, 1000),
    colWidths: 100,
    width: '100%',
    height: 320,
    rowHeights: 23,
    rowHeaders: true,
    colHeaders: true,
    afterChange: function(changes, src){
    	if(changes){
				this.setCellMeta(changes[0][0], changes[0][1], 'className', 'myCell');
        this.render()
  		}
    }
  });