diff --git a/README.md b/README.md index 49db822..f481f81 100644 --- a/README.md +++ b/README.md @@ -86,34 +86,43 @@ Svelte Headless Table comes with a stable plugin system that allows you to trans }), ]); - const { headerRows, rows } = table.createViewModel(columns); + const { + headerRows, + rows, + tableAttrs, + tableBodyAttrs, + } = table.createViewModel(columns); - +
{#each $headerRows as headerRow (headerRow.id)} - - {#each headerRow.cells as cell (cell.id)} - - - - {/each} - + + + {#each headerRow.cells as cell (cell.id)} + + + + {/each} + + {/each} - + {#each $rows as row (row.id)} - - {#each row.cells as cell (cell.id)} - - - - {/each} - + + + {#each row.cells as cell (cell.id)} + + + + {/each} + + {/each}
- -
+ +
- -
+ +