Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Mike Fortman
cef21e500b
Merge branch 'main' into pagination 2026-01-16 11:21:12 -06:00
Mike Fortman
cf66993434 Add pagination 2026-01-15 11:55:54 -06:00

View file

@ -361,6 +361,15 @@ function SearchPage() {
} }
}; };
// enables pagination in the grid
const pagination = true;
// sets 25 rows per page (default is 100)
const paginationPageSize = 25;
// allows the user to select the page size from a predefined list of page sizes
const paginationPageSizeSelector = [10, 25, 50, 100];
return ( return (
<> <>
<div className="flex flex-col h-full"> <div className="flex flex-col h-full">
@ -408,6 +417,9 @@ function SearchPage() {
getRowId={(params: GetRowIdParams<File>) => params.data?.filename} getRowId={(params: GetRowIdParams<File>) => params.data?.filename}
domLayout="normal" domLayout="normal"
onSelectionChanged={onSelectionChanged} onSelectionChanged={onSelectionChanged}
pagination={pagination}
paginationPageSize={paginationPageSize}
paginationPageSizeSelector={paginationPageSizeSelector}
noRowsOverlayComponent={() => ( noRowsOverlayComponent={() => (
<div className="text-center pb-[45px]"> <div className="text-center pb-[45px]">
<div className="text-lg text-primary font-semibold"> <div className="text-lg text-primary font-semibold">