Hello
currently I am using handsontable without license.
My project is Next.js.
const hotData = [
["Tesla", "2017", "black", "1", "a"],
["Nissan", "2018", "blue", "2", "b"],
["Chrysler", "2019", "yellow", "3", "c"],
["Volvo", "2020", "white", "4", "d"],
];
const DataTable = () => {
const hotSettings = {
data: hotData,
colHeaders: true,
nestedHeaders: [[{ label: "B", colspan: 5 }], ["N", "O", "P", "Q", "R"]],
licenseKey: "non-commercial-and-evaluation",
};
return (
<>
<HotTable id="hot" settings={hotSettings} />
</>
);
};
the result like the following. so nested header didn’t work
when I used data: Handsontable.helper.createSpreadsheetData(4, 5)
instead of data: hotData
,
nested header worked like the following.
I am not clear why nested header is not working with custom data.
also I have found one thing.
when I used data: Handsontable.helper.createSpreadsheetData(4, 5)
, it seems that displaying Table took delay.
maybe this delay is problem?
Regards