tabellen element
This commit is contained in:
@@ -1 +1 @@
|
|||||||
1.2.64
|
1.2.65
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
|
|
||||||
// TABLE
|
// TABLE
|
||||||
const hasBridgeTable = !!(editor && editor.DomComponents && editor.DomComponents.getType && editor.DomComponents.getType('bridge-table'));
|
const hasBridgeTable = !!(editor && editor.DomComponents && editor.DomComponents.getType && editor.DomComponents.getType('bridge-table'));
|
||||||
const tableType = hasBridgeTable ? 'bridge-table' : 'table';
|
const tableType = hasBridgeTable ? 'bridge-table' : 'default';
|
||||||
addOnce(bm, 'cust-table', { id:'cust-table', label:'🧩 Tabelle (2xN)',
|
addOnce(bm, 'cust-table', { id:'cust-table', label:'🧩 Tabelle (2xN)',
|
||||||
content:{
|
content:{
|
||||||
type: tableType,
|
type: tableType,
|
||||||
@@ -96,19 +96,34 @@
|
|||||||
'width':'100%',
|
'width':'100%',
|
||||||
'margin-bottom':'16px'
|
'margin-bottom':'16px'
|
||||||
},
|
},
|
||||||
components:`
|
components: [
|
||||||
<tr>
|
{
|
||||||
<th style="${css({'text-align':'left','padding':'8px','border':'1px solid #e2e8f0','background-color':'#f8fafc','font-size':'13px'})}">Spalte A</th>
|
tagName: 'tbody',
|
||||||
<th style="${css({'text-align':'left','padding':'8px','border':'1px solid #e2e8f0','background-color':'#f8fafc','font-size':'13px'})}">Spalte B</th>
|
components: [
|
||||||
</tr>
|
{
|
||||||
<tr>
|
tagName: 'tr',
|
||||||
<td style="${css({'padding':'8px','border':'1px solid #e2e8f0','font-size':'13px'})}">Zeile 1</td>
|
components: [
|
||||||
<td style="${css({'padding':'8px','border':'1px solid #e2e8f0','font-size':'13px'})}">...</td>
|
{ tagName: 'th', content: 'Spalte A', style: {'text-align':'left','padding':'8px','border':'1px solid #e2e8f0','background-color':'#f8fafc','font-size':'13px'} },
|
||||||
</tr>
|
{ tagName: 'th', content: 'Spalte B', style: {'text-align':'left','padding':'8px','border':'1px solid #e2e8f0','background-color':'#f8fafc','font-size':'13px'} },
|
||||||
<tr>
|
],
|
||||||
<td style="${css({'padding':'8px','border':'1px solid #e2e8f0','font-size':'13px'})}">Zeile 2</td>
|
},
|
||||||
<td style="${css({'padding':'8px','border':'1px solid #e2e8f0','font-size':'13px'})}">...</td>
|
{
|
||||||
</tr>`
|
tagName: 'tr',
|
||||||
|
components: [
|
||||||
|
{ tagName: 'td', content: 'Zeile 1', style: {'padding':'8px','border':'1px solid #e2e8f0','font-size':'13px'} },
|
||||||
|
{ tagName: 'td', content: '...', style: {'padding':'8px','border':'1px solid #e2e8f0','font-size':'13px'} },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
tagName: 'tr',
|
||||||
|
components: [
|
||||||
|
{ tagName: 'td', content: 'Zeile 2', style: {'padding':'8px','border':'1px solid #e2e8f0','font-size':'13px'} },
|
||||||
|
{ tagName: 'td', content: '...', style: {'padding':'8px','border':'1px solid #e2e8f0','font-size':'13px'} },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
]
|
||||||
} });
|
} });
|
||||||
|
|
||||||
// DIVIDER
|
// DIVIDER
|
||||||
|
|||||||
Reference in New Issue
Block a user