Replies: 3 comments
-
|
Nvm found it for anyone who is looking as well. const table = useReactTable({
data,
columns,
getCoreRowModel: getCoreRowModel(),
getPaginationRowModel: getPaginationRowModel(),
onSortingChange: setSorting,
getSortedRowModel: getSortedRowModel(),
onColumnFiltersChange: setColumnFilters,
getFilteredRowModel: getFilteredRowModel(),
state: {
sorting,
columnFilters,
},
initialState: { //This line
pagination: {
pageSize: 15,
},
}
}); |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
it works for Vue as well btw |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
thanks, it works for next js as well |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Anyone know how to show more rows by default to the datatable when rendering. Right now its limited to around 10 on initial render.
https://ui.shadcn.com/docs/components/data-table
I can't for the life of me find how to do this.
Beta Was this translation helpful? Give feedback.
All reactions