Paginated table
Live demo
PaginatedTable
I am a banner
Registered business name | Account ID | Contact Email | Business display name | Telephone number | Country | Postal code | Actions |
---|---|---|---|---|---|---|---|
Gleason Group | 76401242 | Llewellyn.Aufderhar@gmail.com | Welch, Towne and Wintheiser McCullough - Hansen | 907-661-5282 | South Africa | 11574 | |
Nienow - Hyatt | 74764545 | Kaitlyn.Tremblay@hotmail.com | Thiel, Mraz and Hessel Kuhic - Feeney | 873.824.1433 x17572 | Norway | 88404-1733 | |
Rau - Wintheiser | 74191071 | Eli.Jenkins@hotmail.com | Batz, Hirthe and Feeney Nitzsche - Pagac | 1-311-762-6713 | Romania | 05223 | |
Reichert, Turner and Adams | 10005842 | Zackary_MacGyver@gmail.com | Feil - Kris Kutch and Sons | (736) 906-0573 x123 | Algeria | 28215-9972 | |
Doyle Inc | 11699785 | Leslie_Roberts@hotmail.com | Baumbach, Schumm and Zboncak Schmitt - Lebsack | 532.221.5730 | Afghanistan | 54340 | |
Swaniawski - Ortiz | 74556833 | Casper.Daniel@gmail.com | Block LLC D'Amore LLC | 689.648.6880 | Bhutan | 54529 | |
Hartmann, Pollich and Raynor | 36156241 | Giles.Abshire42@gmail.com | Rutherford LLC Rutherford, Gorczany and Carter | 1-759-812-0667 | Virgin Islands, British | 98133 | |
Hintz, Jerde and Stroman | 27111291 | Madeline.Will20@gmail.com | Cummings, Steuber and Lakin Schroeder Inc | 642-289-8585 | Jordan | 16722 | |
O'Hara - Huel | 95613545 | Morris18@yahoo.com | Ritchie Group Russel, Rolfson and Cruickshank | 269-663-6122 x5725 | Peru | 00652-5444 | |
Lueilwitz Inc | 06938096 | Katheryn20@gmail.com | Bergstrom and Sons Williamson - Erdman | 1-208-975-9706 x328 | Tuvalu | 06068 |
Viewing {total,select,0{{current} of {total}}1{{current} of {total}}other{1-{current} of {total}}}
PaginatedTable with 2 pinned columns
I am a banner
Registered business name | Account ID | Contact Email | Business display name | Telephone number | Country | Postal code | Actions |
---|---|---|---|---|---|---|---|
Gleason Group | 76401242 | Llewellyn.Aufderhar@gmail.com | Welch, Towne and Wintheiser McCullough - Hansen | 907-661-5282 | South Africa | 11574 | |
Nienow - Hyatt | 74764545 | Kaitlyn.Tremblay@hotmail.com | Thiel, Mraz and Hessel Kuhic - Feeney | 873.824.1433 x17572 | Norway | 88404-1733 | |
Rau - Wintheiser | 74191071 | Eli.Jenkins@hotmail.com | Batz, Hirthe and Feeney Nitzsche - Pagac | 1-311-762-6713 | Romania | 05223 | |
Reichert, Turner and Adams | 10005842 | Zackary_MacGyver@gmail.com | Feil - Kris Kutch and Sons | (736) 906-0573 x123 | Algeria | 28215-9972 | |
Doyle Inc | 11699785 | Leslie_Roberts@hotmail.com | Baumbach, Schumm and Zboncak Schmitt - Lebsack | 532.221.5730 | Afghanistan | 54340 | |
Swaniawski - Ortiz | 74556833 | Casper.Daniel@gmail.com | Block LLC D'Amore LLC | 689.648.6880 | Bhutan | 54529 | |
Hartmann, Pollich and Raynor | 36156241 | Giles.Abshire42@gmail.com | Rutherford LLC Rutherford, Gorczany and Carter | 1-759-812-0667 | Virgin Islands, British | 98133 | |
Hintz, Jerde and Stroman | 27111291 | Madeline.Will20@gmail.com | Cummings, Steuber and Lakin Schroeder Inc | 642-289-8585 | Jordan | 16722 | |
O'Hara - Huel | 95613545 | Morris18@yahoo.com | Ritchie Group Russel, Rolfson and Cruickshank | 269-663-6122 x5725 | Peru | 00652-5444 | |
Lueilwitz Inc | 06938096 | Katheryn20@gmail.com | Bergstrom and Sons Williamson - Erdman | 1-208-975-9706 x328 | Tuvalu | 06068 |
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> <Text>I am a banner</Text> </PaginatedTable.Banner> } > <PaginatedTable.OffsetPagination {...pagination}> {values.from} - {values.to} of {values.total} </PaginatedTable.OffsetPagination> </Paginated>