Handsontable example

HTML

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/handsontable-pro@6.2.2/dist/handsontable.full.min.css">
<script src="https://cdn.jsdelivr.net/npm/handsontable-pro@6.2.2/dist/handsontable.full.min.js"></script>
<div id="example1" class="hot handsontable htRowHeaders htColumnHeaders" style="height: 320px; overflow: hidden; width: 584px;" data-originalstyle="height: 320px; overflow: hidden; width: 584px;"></div>

CSS

body .handsontable .halo {
  background: yellow
}

JavaScript

var example = document.getElementById('example1');
  var hot = new Handsontable(example, {
    data: Handsontable.helper.createSpreadsheetData(100, 20),
    width: 584,
    height: 320,
    fixedColumnsLeft: 2,
    rowHeaders: true,
    colHeaders: true
  });

  hot.addHook('afterOnCellMouseOver', function(e, coords, TD) {
    if (TD.className != 'halo') {
      TD.className = 'halo'
    }
  })

  hot.addHook('afterOnCellMouseOut', function(e, coords, TD) {
    if (TD.className === 'halo') {
      TD.className = ''
    }
  })