T
TanStack3y ago
foreign-sapphire

Example with Django Rest Framework

Currently I am using a stack of a Django backend and a Next.js frontend. I'm trying to implement a Table component with custom pagination, ordering, filtering and searching by the API endpoint. This can be done with e.g. api/products/?search=foo, api/products/?ordering=created_at,-name or api/products/?color=blue, or all together forming a query together. I cannot seem to figure out how to combine this with the useTable hook. Any help welcome! I am using shadcn's Data Table for UI if it is worth noting: https://ui.shadcn.com/docs/components/data-table#pagination
Data Table
Powerful table and datagrids built using TanStack Table.
1 Reply
foreign-sapphire
foreign-sapphireOP3y ago
Essentially I just need everything to be controlled as of Pagination, Ordering, Filtering and Searching

Did you find this page helpful?