I’m relatively new to javascript and I’m trying to implement an instance of HandsOnTable for a project for work. I’ve followed the tutorials and contacted someone at HandsOnTable for help. Despite her patience and guidance, I still can’t seem to render a table. I’ve tried it on multiple machines and operating systems but still have no luck. All I get is a blank web page with the proper title, but no table. I’m using Eclipse and placed the node_modules package in the project on which I’m working. I don’t know what I’m doing wrong. I’ve attached my code for your review.
index.html
<title>Dispatch Data - Test</title>
<link rel="stylesheet" href="node_modules/handsontable/dist/handsontable.full.css">
<script src="node_modules/handsontable/dist/handsontable.full.js"></script>
script.js
var container = container.document.querySelector(’.example’);
hor = new Handsontable(container, {
data: [["2017", 10, 11, 12, 13],
["2018", 20, 11, 14, 13],
["2019", 30, 15, 12, 13]]
})