updated app

This commit is contained in:
2012-05-30 23:00:06 -04:00
parent 6a753904b7
commit da6ad88d48
5545 changed files with 1101709 additions and 60 deletions

View 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>