mirror of
https://github.com/sstent/node.git
synced 2026-01-27 15:41:43 +00:00
updated app
This commit is contained in:
25
node_modules/derby-examples/sink/views/app/tableEditor.html
generated
vendored
Normal file
25
node_modules/derby-examples/sink/views/app/tableEditor.html
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
<Body:>
|
||||
<button x-bind="click: tableEditor.addRow">Add row</button>
|
||||
<button x-bind="click: tableEditor.addCol">Add column</button>
|
||||
<hr>
|
||||
<table>
|
||||
<tr>
|
||||
<td></td>
|
||||
{#each table.cols}
|
||||
<th x-bind="mousedown: tableEditor.colDown" class=col>{.name}</th>
|
||||
{/}
|
||||
<td></td>
|
||||
</tr>
|
||||
{#each table.rows}
|
||||
<tr class=row>
|
||||
<th x-bind="mousedown: tableEditor.rowDown">{.name}</th>
|
||||
{#each .cells}<td><input value={.text}></td>{/}
|
||||
<td><button x-bind="click: tableEditor.deleteRow">Delete</button></td>
|
||||
</tr>
|
||||
{/}
|
||||
<tr class=foot>
|
||||
<td></td>
|
||||
{#each table.cols}<td><button x-bind="click: tableEditor.deleteCol">Delete</button></td>{/}
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
Reference in New Issue
Block a user