Handsontable example

by oo7_sakshi

HTML

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

CSS

</style><!-- Ugly Hack due to jsFiddle issue -->

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/handsontable.full.min.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/handsontable.full.min.css">

JavaScript

var sourceDataObject = [
            {
              category: 'Best Rock Performance',
              artist: null,
              title: null,
              label: null,
              __children: [
                {
                  title: 'Don\'t Wanna Fight',
                  artist: 'Alabama Shakes',
                  label: 'ATO Records'
                }, {
                  title: 'What Kind Of Man',
                  artist: 'Florence & The Machine',
                  label: 'Republic'
                }, {
                  title: 'Something From Nothing',
                  artist: 'Foo Fighters',
                  label: 'RCA Records'
                }, {
                  title: 'Ex\'s & Oh\'s',
                  artist: 'Elle King',
                  label: 'RCA Records'
                }, {
                  title: 'Moaning Lisa Smile',
                  artist: 'Wolf Alice',
                  label: 'RCA Records/Dirty Hit'
                }
  
              ]
            }, {
              category: 'Best Metal Performance',
              __children: [
                {
                  title: 'Cirice',
                  artist: 'Ghost',
                  label: 'Loma Vista Recordings'
                }, {
                  title: 'Identity',
                  artist: 'August Burns Red',
                  label: 'Fearless Records'
                }, {
                  title: '512',
                  artist: 'Lamb Of God',
                  label: 'Epic Records'
                }, {
                  title: 'Thank You',
                  artist: 'Sevendust',
                  label: '7Bros Records'
                }, {
                  title: 'Custer',
                  artist: 'Slipknot',
                  label: 'Roadrunner Records'
                },]
            }, {
              category: 'Best Rock Song',
              __children: [
                {
                  title: 'Don\'t Wanna Fight',
                  artist: 'Alabama Shakes',
...