Table
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user