From a8798df2bc2c49431e38920fdd4cd044edb80270 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Mon, 5 Nov 2018 23:42:01 +0100 Subject: [PATCH] [TablePagination] Allow more rows per pages --- docs/src/pages/demos/tables/CustomPaginationActionsTable.js | 1 + docs/src/pages/demos/tables/EnhancedTable.js | 1 + packages/material-ui/src/TablePagination/TablePagination.js | 2 +- pages/api/table-pagination.md | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/src/pages/demos/tables/CustomPaginationActionsTable.js b/docs/src/pages/demos/tables/CustomPaginationActionsTable.js index c7335134f49f65..43489626e1bfd4 100644 --- a/docs/src/pages/demos/tables/CustomPaginationActionsTable.js +++ b/docs/src/pages/demos/tables/CustomPaginationActionsTable.js @@ -171,6 +171,7 @@ class CustomPaginationActionsTable extends React.Component { `${from}-${to} of ${count}`, labelRowsPerPage: 'Rows per page:', - rowsPerPageOptions: [5, 10, 25], + rowsPerPageOptions: [10, 25, 50, 100], }; export default withStyles(styles, { name: 'MuiTablePagination' })(TablePagination); diff --git a/pages/api/table-pagination.md b/pages/api/table-pagination.md index 5acde75b0c400f..ec11be1d2da479 100644 --- a/pages/api/table-pagination.md +++ b/pages/api/table-pagination.md @@ -31,7 +31,7 @@ A `TableCell` based component for placing inside `TableFooter` for pagination. | onChangeRowsPerPage | func |   | Callback fired when the number of rows per page is changed.

**Signature:**
`function(event: object) => void`
*event:* The event source of the callback | | page * | number |   | The zero-based index of the current page. | | rowsPerPage * | number |   | The number of rows per page. | -| rowsPerPageOptions | array | [5, 10, 25] | Customizes the options of the rows per page select field. If less than two options are available, no select field will be displayed. | +| rowsPerPageOptions | array | [5, 10, 25, 50] | Customizes the options of the rows per page select field. If less than two options are available, no select field will be displayed. | | SelectProps | object |   | Properties applied to the rows per page [`Select`](/api/select/) element. | Any other properties supplied will be spread to the root element ([TableCell](/api/table-cell/)).