Skip to content

Server side API? #63

Answered by bryanmylee
Gildedter asked this question in Q&A
Oct 5, 2022 · 4 comments · 4 replies
Discussion options

You must be logged in to vote

Hey @Gildedter! @blerrgh actually implemented some server side features at the start of the year but the documentation had to be delayed since the previous framework I was using relied on an old SvelteKit version which was no longer publishable to Vercel.

I recently spent a lot of effort migrating the site though, so a documentation update is definitely due.

In the meantime, you can refer to this snippet for an idea of how server-side sorting, filtering, and pagination can be implemented:

const data = writable([...]);

const table = createTable(data, {
  sort: addSortBy({ serverSide: true }),
  filter: addTableFilter({ serverSide: true }),
  page: addPagination({ serverSide: true }),
});

c…

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@blerrgh
Comment options

@Gildedter
Comment options

@webtech-tom
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Gildedter
Comment options

Answer selected by Gildedter
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants