Handsontable example

by handsoncode

HTML

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

CSS

.wtBorder.current,
.wtBorder.area {
  background-color: #FF5A12 !important;
}
.handsontable td.area:before {
  background: #FF5A12 !important;
}

Babel + JSX

const container = document.getElementById('example');
const hot = new Handsontable(container, {
    data: Handsontable.helper.createSpreadsheetData(1000, 1000),
    licenseKey: 'non-commercial-and-evaluation',
    colWidths: 100,
    width: '100%',
    height: 320,
    rowHeights: 23,
    rowHeaders: true,
    colHeaders: true,
  });
hot.selectCell(0, 0, 3, 4);