Added pagination
This commit is contained in:
parent
be0bb51254
commit
358f53d837
1 changed files with 2 additions and 25 deletions
|
|
@ -77,33 +77,10 @@ export default function TableComponent() {
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
dark ? "ag-theme-quartz-dark" : "ag-theme-quartz",
|
dark ? "ag-theme-quartz-dark" : "ag-theme-quartz",
|
||||||
"ag-theme-shadcn flex h-full flex-col"
|
"ag-theme-shadcn flex h-full flex-col pb-8"
|
||||||
)} // applying the grid theme
|
)} // applying the grid theme
|
||||||
>
|
>
|
||||||
<AgGridReact columnDefs={colDefs} rowData={rowData} />
|
<AgGridReact pagination={true} columnDefs={colDefs} rowData={rowData} />
|
||||||
</div>
|
|
||||||
<div className="flex items-center justify-between w-full">
|
|
||||||
<div className="text-xs text-muted-foreground py-4">
|
|
||||||
Showing <strong>1-3</strong> of <strong>3</strong> products
|
|
||||||
</div>
|
|
||||||
<div className="flex items-center justify-end space-x-2 py-4">
|
|
||||||
<Button
|
|
||||||
variant="outline"
|
|
||||||
size="sm"
|
|
||||||
onClick={() => {}}
|
|
||||||
disabled={true}
|
|
||||||
>
|
|
||||||
Previous
|
|
||||||
</Button>
|
|
||||||
<Button
|
|
||||||
variant="outline"
|
|
||||||
size="sm"
|
|
||||||
onClick={() => {}}
|
|
||||||
disabled={false}
|
|
||||||
>
|
|
||||||
Next
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue