diff --git a/libs/ui/src/lib/data/AdvancedTable.md b/libs/ui/src/lib/data/AdvancedTable.md index 7b760324f..a5792d888 100644 --- a/libs/ui/src/lib/data/AdvancedTable.md +++ b/libs/ui/src/lib/data/AdvancedTable.md @@ -56,8 +56,8 @@ Copy `AdvancedTable.tsx` and `useServerTable.ts` into the new project (e.g. `src | `pageIndex` | `number` | yes | 0-based current page. | | `onPageChange` | `(pageIndex: number) => void` | yes | | | `pageSize` | `number` | no | Default `10`. Pagination only renders when `itemCount > pageSize`. | -| `onPageSizeChange` | `(pageSize: number) => void` | no | Shows a page-size `` (10/20/30/40/50 by default) next to the pagination when given. | +| `pageSizeOptions` | `number[]` | no | Options for the page-size select. Default `[10, 20, 30, 40, 50]`. | | `refresh` | `() => void` | no | Shows a Refresh button when provided. | | `onSearchChange` | `(q: string) => void` | no | Reserved for a search box; not currently rendered by the component itself (wire your own input and call this, or drive `useServerTable`'s `setQ`). | | `isLoading` | `boolean` | no | Shows a loader row; also spins the Refresh button. | diff --git a/libs/ui/src/lib/data/AdvancedTable.tsx b/libs/ui/src/lib/data/AdvancedTable.tsx index 6728848b2..a50010013 100644 --- a/libs/ui/src/lib/data/AdvancedTable.tsx +++ b/libs/ui/src/lib/data/AdvancedTable.tsx @@ -40,7 +40,7 @@ interface AdvancedTableProps { pageSize?: number; /** Shows a page-size