Handsontable example

HTML

<div id="example1" class="hot handsontable htColumnHeaders"></div>

CSS

</style><!-- Ugly Hack due to jsFiddle issue --> <script src="https://docs.handsontable.com/pro/1.5.0/bower_components/handsontable-pro/dist/handsontable.full.min.js"></script> <link type="text/css" rel="stylesheet" href="https://docs.handsontable.com/pro/1.5.0/bower_components/handsontable-pro/dist/handsontable.full.min.css"> <script src="https://docs.handsontable.com/pro/1.5.0/bower_components/numbro/dist/languages.min.js"></script>

JavaScript

document.addEventListener("DOMContentLoaded", function() {

  var myData = [{
      "id": 1,
      "name": {
        "first": "John",
        "last": "Schmidt"
      },
      "address": "45024 France",
      "price": 760.41,
      "isActive": "Yes",
      "product": {
        "description": "Fried Potatoes",
        "options": [{
          "description": "Fried Potatoes",
          "image": "//a248.e.akamai.net/assets.github.com/images/icons/emoji/fries.png"
        }, {
          "description": "Fried Onions",
          "image": "//a248.e.akamai.net/assets.github.com/images/icons/emoji/fries.png"
        }]
      }
    },
    //more items go here
  ];

  var
    container = document.getElementById('example1'),
    hot;

  hot = new Handsontable(container, {
    data: myData,
    colHeaders: true,
    columnSorting: true,
    startRows: 5,
    colHeaders: true,
    minSpareRows: 1,
    contextMenu: ['remove_row'],
  });


});