Hi, I am currently making a Handsontable with a Handsontable in it, as described here:
https://handsontable.com/docs/handsontable-cell-type
I would like to make the opening Handsontable a certain width (40rem) but what I tried did not work:
new Handsontable(container, {
rowHeaders: true,
colHeaders: tableColHeaders,
width: '100%',
stretchH: 'all',
manualColumnResize: true,
preventOverflow: 'horizontal',
language: frFR.languageCode,
columns: [
{
type: 'date',
width: 120,
data: 'date',
},
{
data: 'course.name',
type: 'handsontable',
handsontable: {
width: '40rem',
manualColumnResize: false,
colHeaders: ['Cours', 'Matière', 'course_id', 'matiere_id'],
data: courses,
getValue() {
const selection = this.getSelectedLast();
// Get the first column of the clicked row and ignore header coordinates (negative values)
return this.getSourceDataAtRow(Math.max(selection[0], 0)).name;
},
},
},
{
data: 'room.name',
},
],
});
Is it something possible in the first place? If so, how can I achieve it?