Handsontable example

by Aleksandra Maria Budnik

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: [
    	{id:1, name: 'Adam', age: 55},
      {id:2, name: 'John', age: 67}
    ],
    rowHeaders: true,
    colHeaders: true
  });
  
  var myValue = hot.getDataAtProp('name');
  console.log(myValue)