diff --git a/docs/pages/api-docs/table-pagination.md b/docs/pages/api-docs/table-pagination.md index 7a776ec1a949ae..14b5b71c84c260 100644 --- a/docs/pages/api-docs/table-pagination.md +++ b/docs/pages/api-docs/table-pagination.md @@ -30,8 +30,8 @@ A `TableCell` based component for placing inside `TableFooter` for pagination. | classes | object | | Override or extend the styles applied to the component. See [CSS API](#css) below for more details. | | component | elementType | TableCell | The component used for the root node. Either a string to use a DOM element or a component. | | count * | number | | The total number of rows.
To enable server side pagination for an unknown number of items, provide -1. | -| labelDisplayedRows | func | ({ from, to, count }) =>`${from}-${to === -1 ? count : to} of ${count !== -1 ? count : `more than ${to}`}` | Customize the displayed rows label.
For localization purposes, you can use the provided [translations](/guides/localization/). | -| labelRowsPerPage | node | 'Rows per page:' | Customize the rows per page label. Invoked with a `{ from, to, count, page }` object.
For localization purposes, you can use the provided [translations](/guides/localization/). | +| labelDisplayedRows | func | ({ from, to, count }) =>`${from}-${to === -1 ? count : to} of ${count !== -1 ? count : `more than ${to}`}` | Customize the displayed rows label. Invoked with a `{ from, to, count, page }` object.
For localization purposes, you can use the provided [translations](/guides/localization/). | +| labelRowsPerPage | node | 'Rows per page:' | Customize the rows per page label.
For localization purposes, you can use the provided [translations](/guides/localization/). | | nextIconButtonProps | object | | Props applied to the next arrow [`IconButton`](/api/icon-button/) element. | | nextIconButtonText | string | 'Next page' | Text label for the next arrow icon button.
For localization purposes, you can use the provided [translations](/guides/localization/). | | onChangePage * | func | | Callback fired when the page is changed.

**Signature:**
`function(event: object, page: number) => void`
*event:* The event source of the callback.
*page:* The page selected. | diff --git a/packages/material-ui/src/TablePagination/TablePagination.js b/packages/material-ui/src/TablePagination/TablePagination.js index f1803bcffce689..019ce8d0bf3f9b 100644 --- a/packages/material-ui/src/TablePagination/TablePagination.js +++ b/packages/material-ui/src/TablePagination/TablePagination.js @@ -206,14 +206,14 @@ TablePagination.propTypes = { */ count: PropTypes.number.isRequired, /** - * Customize the displayed rows label. + * Customize the displayed rows label. Invoked with a `{ from, to, count, page }` + * object. * * For localization purposes, you can use the provided [translations](/guides/localization/). */ labelDisplayedRows: PropTypes.func, /** - * Customize the rows per page label. Invoked with a `{ from, to, count, page }` - * object. + * Customize the rows per page label. * * For localization purposes, you can use the provided [translations](/guides/localization/). */