@brickslab./ui-webQuiz
Admin response table with client-side sort, filter, pagination, and CSV/XLSX export.
With filters, pagination and export
Props
| Prop | Type | Défaut | Requis | Description |
|---|---|---|---|---|
rows | ResponseRow[] | — | ✓ | Array of data rows — each must have an id field. |
columns | ColumnDef[] | — | ✓ | Column definitions: { id, label, type?, width?, sortable? }. |
pagination | { page, pageSize, total } | — | — | Pagination state. Shows pagination UI when total > pageSize. |
onPageChange | (page: number) => void | — | — | Called when the user navigates to a different page. |
filters | FilterDef[] | — | — | Filter definitions — renders a text input per filter above the table. |
onExport | (format: "csv" | "xlsx") => void | — | — | Shows CSV/XLSX export buttons when provided. |
Override rapide
Tous les paramètres listés dans cette table sont overrideables via les props. Utilisez ce squelette comme point de départ.
<MyComponent
rows={[]}
columns={[]}
pagination={...}
onPageChange={0}
filters={[]}
onExport="csv"
/>rowscolumnspaginationonPageChangefiltersonExport