$table.setPageIndex(0)} disabled={!$table.getCanPreviousPage()} > {"<<"}
$table.previousPage()} disabled={!$table.getCanPreviousPage()} > {"<"}
$table.nextPage()} disabled={!$table.getCanNextPage()} > {">"}
$table.setPageIndex($table.getPageCount() - 1)} disabled={!$table.getCanNextPage()} > {">>"}
Page
{$table.getState().pagination.pageIndex + 1} of{" "} {$table.getPageCount()}
| Go to page:
{ const page = e.target.value ? Number(e.target.value) - 1 : 0; $table.setPageIndex(page); }} class="border p-1 rounded w-16" />
{ const ps = Number(e.target.value); console.log({ ps }); $table.setPageSize(Number(e.target.value)); }} > {#each [25, 50, 100, 250, 500] as pageSize}
{pageSize}
{/each}
{Object.keys(selected).length} of{" "} {$table.getPreFilteredRowModel().rows.length} Total Rows Selected