Handsontable example

by aszymanski

HTML

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/handsontable/handsontable@8.0.0/dist/handsontable.full.css">
<script src="https://cdn.jsdelivr.net/gh/handsontable/handsontable@8.0.0/dist/handsontable.full.js"></script>
<div id="example3" class="hot handsontable htRowHeaders htColumnHeaders"></div>

JavaScript

function getData() {
    return [
      ['', 'Kia', 'Nissan', 'Toyota', 'Honda', 'Mazda', 'Ford'],
      ['201220122012201220122012', 10, 11, 12, 13, 15, 16],
      ['2013', 10, 11, 12, 13, 15, 16],
      ['2014', 10, 11, 12, 13, 15, 16],
      ['2015', 10, 11, 12, 13, 15, 16],
      ['2016', 10, 11, 12, 13, 15, 16]
    ];
  }

  let example3 = document.getElementById('example3'), settings3, hot;

  settings3 = {
    data: getData(),
    rowHeaders: true,
    colHeaders: true,
    autoColumnSize: {syncLimit: '100%'},
    licenseKey: 'non-commercial-and-evaluation',
  };
  
  hot = new Handsontable(example3, settings3);