Handsontable example

HTML

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

CSS

</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(15, 3),
    colWidths: 100,
    width: '100%',
    height: 320,
    rowHeights: 23,
    rowHeaders: true,
    colHeaders: true,
    hiddenRows: true
  });
  
  hot.addHook('afterChange', function(changes, src){
  	var row = changes[0][0];
    var col = changes[0][1];
    var newval = changes[0][3];
    console.log(newval);
    if(newval === 'x'){
    	setTimeout(function(){
      	hot.getPlugin('hiddenRows').hideRow(row);
        hot.render()
      }, 800)
    }
  })