This commit is contained in:
2026-02-09 00:10:26 +01:00
parent a6c6bc3340
commit 70127e61c2
3 changed files with 19 additions and 11 deletions

View File

@@ -43,23 +43,31 @@
const label = existingVal || (r === 0 ? `Spalte ${String.fromCharCode(65 + c)}` : `Zeile ${r} / ${c + 1}`);
if (r === 0) {
row.components.push({
type: 'text',
tagName: 'th',
editable: true,
selectable: true,
hoverable: true,
draggable: false,
attributes: {
style: headStyle,
'data-gjs-selectable': 'false',
'data-gjs-draggable': 'false',
},
components: [{ type: 'textnode', content: label }],
content: label,
});
} else {
row.components.push({
type: 'text',
tagName: 'td',
editable: true,
selectable: true,
hoverable: true,
draggable: false,
attributes: {
style: cellStyle,
'data-gjs-selectable': 'false',
'data-gjs-draggable': 'false',
},
components: [{ type: 'textnode', content: label }],
content: label,
});
}
}