Paginated table
Live demo
PaginatedTable
I am an info banner
Registered business name | Account ID | Contact Email | Business display name | Telephone number | Country | Postal code | Actions |
---|---|---|---|---|---|---|---|
McCullough - Bradtke | 87836524 | Blaze.Deckow34@yahoo.com | Mohr - Olson Kutch - Willms | 1-245-633-5875 x7441 | Senegal | 01812 | |
Lind, Breitenberg and Rice | 84934261 | Elza70@hotmail.com | Gutkowski - Jones Koch - Gottlieb | 1-345-312-1579 x68438 | Sudan | 42926 | |
Kilback LLC | 21401568 | Remington_Hudson-McCullough@hotmail.com | Blanda LLC Konopelski, Kuhn and Volkman | (444) 637-9227 x38379 | Georgia | 40985 | |
Jacobson, Zboncak and Metz | 88935979 | Ethelyn.Schimmel79@hotmail.com | Lang - Carroll Bashirian - Rempel | 899-901-2850 x111 | Kiribati | 28440 | |
Kessler - Lebsack | 76200837 | Garrick_Schneider6@gmail.com | Bosco - Feeney Lakin, Quitzon and McCullough | (605) 665-4949 x7149 | Kenya | 17900-0408 | |
Skiles and Sons | 62675558 | Novella.Shields34@yahoo.com | Watsica - Lindgren Raynor - Stark | 706.729.2590 | San Marino | 84391-0369 | |
Gibson - Harvey | 56752832 | Giles.Cruickshank@hotmail.com | Heller - Welch Breitenberg LLC | (465) 570-7448 x668 | Virgin Islands, U.S. | 06277-9541 | |
Gutmann, Schneider and Lemke | 52477485 | Jerry.Collier@gmail.com | Harber - Borer Bayer Group | (938) 928-6077 x969 | Liberia | 09656-5421 | |
Prosacco, Williamson and Spinka | 04830214 | Berenice_Price@hotmail.com | Homenick - Bartell Prohaska - Stanton | (330) 903-7078 | Gabon | 09278-1264 | |
Jakubowski - Bauch | 07582811 | Leatha_Green55@gmail.com | Hamill, Collier and Rodriguez Jacobi and Sons | 690.558.1228 | Botswana | 28611 |
Viewing {total,select,0{{current} of {total}}1{{current} of {total}}other{1-{current} of {total}}}
PaginatedTable with 2 pinned columns
I am an alert banner
Registered business name | Account ID | Contact Email | Business display name | Telephone number | Country | Postal code | Actions |
---|---|---|---|---|---|---|---|
McCullough - Bradtke | 87836524 | Blaze.Deckow34@yahoo.com | Mohr - Olson Kutch - Willms | 1-245-633-5875 x7441 | Senegal | 01812 | |
Lind, Breitenberg and Rice | 84934261 | Elza70@hotmail.com | Gutkowski - Jones Koch - Gottlieb | 1-345-312-1579 x68438 | Sudan | 42926 | |
Kilback LLC | 21401568 | Remington_Hudson-McCullough@hotmail.com | Blanda LLC Konopelski, Kuhn and Volkman | (444) 637-9227 x38379 | Georgia | 40985 | |
Jacobson, Zboncak and Metz | 88935979 | Ethelyn.Schimmel79@hotmail.com | Lang - Carroll Bashirian - Rempel | 899-901-2850 x111 | Kiribati | 28440 | |
Kessler - Lebsack | 76200837 | Garrick_Schneider6@gmail.com | Bosco - Feeney Lakin, Quitzon and McCullough | (605) 665-4949 x7149 | Kenya | 17900-0408 | |
Skiles and Sons | 62675558 | Novella.Shields34@yahoo.com | Watsica - Lindgren Raynor - Stark | 706.729.2590 | San Marino | 84391-0369 | |
Gibson - Harvey | 56752832 | Giles.Cruickshank@hotmail.com | Heller - Welch Breitenberg LLC | (465) 570-7448 x668 | Virgin Islands, U.S. | 06277-9541 | |
Gutmann, Schneider and Lemke | 52477485 | Jerry.Collier@gmail.com | Harber - Borer Bayer Group | (938) 928-6077 x969 | Liberia | 09656-5421 | |
Prosacco, Williamson and Spinka | 04830214 | Berenice_Price@hotmail.com | Homenick - Bartell Prohaska - Stanton | (330) 903-7078 | Gabon | 09278-1264 | |
Jakubowski - Bauch | 07582811 | Leatha_Green55@gmail.com | Hamill, Collier and Rodriguez Jacobi and Sons | 690.558.1228 | Botswana | 28611 |
Viewing {total,select,0{{current} of {total}}1{{current} of {total}}other{1-{current} of {total}}}
Code
Paginated Table
import { PaginatedTable } from './paginated-table'; const values = Table.OffsetPagination.paginationToResultValues( pagination, window.navigator.language, ); <PaginatedTable caption="Table caption" rows={rows} columns={columns} fallbackMessage="Fallback message" > <PaginatedTable.OffsetPagination {...pagination}> {values.from} - {values.to} of {values.total} </PaginatedTable.OffsetPagination> </PaginatedTable>;
Paginated table with variant option in the table cells
import{ PaginatedTable } from './paginated-table'; const columns: Columns = [ { headerName: 'Registered business name', field: 'companyName', cellTextVariant: 'captionMedium150', }, { headerName: 'Business display name', field: 'displayName', cellTextVariant: 'captionMedium150', }, { headerName: 'Contact Email', field: 'emailAddress', cellTextVariant: 'captionMedium150', }, ]; <PaginatedTable caption="Table caption" rows={rows} columns={columns} fallbackMessage="Fallback message" banner={ <PaginatedTable.Banner variant="info"> <Text>I am a banner</Text> </PaginatedTable.Banner> } > <PaginatedTable.OffsetPagination {...pagination}> {values.from} - {values.to} of {values.total} </PaginatedTable.OffsetPagination> </Paginated>