We use the below code for getting a nested table structure, observe that each of ‘NA’, ‘EU’, ‘AP’ are of colspan 3 and should have the child elements
‘Inco -<>’,
‘Inco te- <>’,
‘Total - <>’,
But the table is not rendered like that. Observe the screenshot attached.
Somehow this works fine if I paste the same code on jsfiddle http://jsfiddle.net/Lvzovgkz/1/. What is it that I could be doing wrong? Any pointers would be helpful. Let me know for any additional information.
this.hotTable = new Handsontable(container, {
data: Handsontable.helper.createSpreadsheetData(5,20),
//colHeaders: true,
rowHeaders: true,
nestedHeaders:[
[’’,
‘’,
‘’,
‘’,
‘’,
‘’,
‘’,
{label: ‘BP’, colspan: 2},
{label: ‘NA’, colspan: 3},
{label: ‘EU’, colspan: 3},
{label: ‘AP’, colspan: 3},
‘’,
‘’
],
[‘PN’,
‘Desc’,
‘Man’,
‘MF’,
‘MO’,
‘Al’,
‘Le’,
‘G P’,
‘N P’,
‘Inco - NA’,
‘Inco te- NA’,
‘Total - NA’,
‘Inco - EU’,
‘Inco te - EU’ ,
‘Total - EU’,
'Inco - APAC ‘,
‘Inco te- APAC’,
‘Total - APAC’,
’ Control’,
‘Comments’]
]
});