Merge branch 'experiment/tanstack' of git.odit.services:lfk/frontend into experiment/tanstack
This commit is contained in:
commit
c5d7ec25b5
@ -1,5 +1,6 @@
|
||||
<script>
|
||||
import { _ } from "svelte-i18n";
|
||||
let tablePageCount = [50, 100, 250, 500];
|
||||
import { writable } from "svelte/store";
|
||||
import {
|
||||
createSvelteTable,
|
||||
@ -69,6 +70,11 @@
|
||||
const options = writable({
|
||||
data: [],
|
||||
columns: columns,
|
||||
initialState: {
|
||||
pagination: {
|
||||
pageSize: tablePageCount[0],
|
||||
},
|
||||
},
|
||||
getCoreRowModel: getCoreRowModel(),
|
||||
getFilteredRowModel: getFilteredRowModel(),
|
||||
getPaginationRowModel: getPaginationRowModel(),
|
||||
@ -239,7 +245,7 @@
|
||||
$table.setPageSize(Number(e.target.value));
|
||||
}}
|
||||
>
|
||||
{#each [10, 25, 50, 100, 250] as pageSize}
|
||||
{#each tablePageCount as pageSize}
|
||||
<option value={pageSize}>{pageSize}</option>
|
||||
{/each}
|
||||
</select>
|
||||
|
Loading…
x
Reference in New Issue
Block a user