Handsontable example
HTML
<script src="https://cdn.jsdelivr.net/npm/handsontable@13.0/dist/handsontable.full.min.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/handsontable@13.0/dist/handsontable.full.min.css" />
<script src="https://handsontable.com/docs/scripts/fixer.js"></script>
<div id="example1" class="hot "></div>
SCSS
.handsontable TH {
border-bottom: 1px solid #eee !important;
border-right: 1px solid #eee !important;
}
/* #example1 {
height: 500px;
width: 500px;
border: 1px solid #eee;
} */
Babel + JSX
import Handsontable from 'handsontable';
import 'handsontable/dist/handsontable.full.min.css';
// generate an array of arrays with dummy data
const data = new Array(100) // number of rows
.fill()
.map((_, row) => new Array(10) // number of columns
.fill()
.map((_, column) => `${row}, ${column}`)
);
const container = document.querySelector('#example1');
const hot = new Handsontable(container, {
data,
height: 320,
colWidths: 47,
rowHeaders: true,
colHeaders: true,
contextMenu: true,
licenseKey: 'non-commercial-and-evaluation'
});