I tried to run the example mentioned in the Quick start link(Quick Start). Downloaded all files via Git hub. when trying to run the example mentioned in quick start getting the following error "cannot read property 'insertBefore' of null - handsontable.full.js:3714". Please help me running the basic example.
Version used - v0.16.1
Code:
<!DOCTYPE html>
<html>
<head>
<script src="dist/handsontable.full.js"></script>
<link rel="stylesheet" media="screen" href="dist/handsontable.full.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>
var data = [
["", "Ford", "Volvo", "Toyota", "Honda"],
["2014", 10, 11, 12, 13],
["2015", 20, 11, 14, 13],
["2016", 30, 15, 12, 13]
];
var container = document.getElementById('example');
var hot = new Handsontable(container, {
data: data,
minSpareRows: 1,
rowHeaders: true,
colHeaders: true,
contextMenu: true
});
</script>
<style>
body {
background-color: white;
margin: 20px;
}
h2 {
margin: 20px 0;
}
</style>
</head>
<body>
<h2>Default Handsontable Demo</h2>
<div id="example"></div>
</body>
Try putting your 3 script nodes in your body rather than in the head. It feels like an issue with how you're loading the modules.