{#if table.length > 1}
{#each table[0] as header, x}
editCell(e, [x, 0])} > {header}
{/each}
{#each table.slice(1) as row, y}
{#each row as cell, x}
editCell(e, [x, y + 1])}>{cell}
{/each}
{/each}
{/if}
{#if canAddRow}
Add row
{/if} {#if canAddCol}
Add col
{/if}
Reset table