From 27bf03c526df5b7562477c7722d82c2a5349cecb 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 --- packages/material-ui/src/TablePagination/TablePagination.js | 2 +- pages/api/table-pagination.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/material-ui/src/TablePagination/TablePagination.js b/packages/material-ui/src/TablePagination/TablePagination.js index d832a4bd0e1d46..2500c7b5864718 100644 --- a/packages/material-ui/src/TablePagination/TablePagination.js +++ b/packages/material-ui/src/TablePagination/TablePagination.js @@ -237,7 +237,7 @@ TablePagination.defaultProps = { component: TableCell, labelDisplayedRows: ({ from, to, count }) => `${from}-${to} of ${count}`, labelRowsPerPage: 'Rows per page:', - rowsPerPageOptions: [5, 10, 25], + rowsPerPageOptions: [5, 10, 25, 50], }; 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/)).