mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
paginationTotal renamed to paginationTotalRenderer
This commit is contained in:
parent
5404124a78
commit
1cf12ab707
@ -46,7 +46,7 @@ const options = {
|
||||
firstPageTitle: 'Next page',
|
||||
lastPageTitle: 'Last page',
|
||||
showTotal: true,
|
||||
paginationTotal: customTotal,
|
||||
paginationTotalRenderer: customTotal,
|
||||
sizePerPageList: [{
|
||||
text: '5', value: 5
|
||||
}, {
|
||||
@ -81,7 +81,7 @@ const options = {
|
||||
firstPageTitle: 'Next page',
|
||||
lastPageTitle: 'Last page',
|
||||
showTotal: true,
|
||||
paginationTotal: customTotal,
|
||||
paginationTotalRenderer: customTotal,
|
||||
sizePerPageList: [{
|
||||
text: '5', value: 5
|
||||
}, {
|
||||
|
||||
@ -108,7 +108,7 @@ class Pagination extends pageResolver(Component) {
|
||||
const {
|
||||
showTotal,
|
||||
dataSize,
|
||||
paginationTotal,
|
||||
paginationTotalRenderer,
|
||||
sizePerPageList,
|
||||
currSizePerPage,
|
||||
hideSizePerPage,
|
||||
@ -143,7 +143,7 @@ class Pagination extends pageResolver(Component) {
|
||||
from,
|
||||
to,
|
||||
dataSize,
|
||||
paginationTotal
|
||||
paginationTotalRenderer
|
||||
) : null
|
||||
}
|
||||
</div>
|
||||
@ -165,7 +165,7 @@ Pagination.propTypes = {
|
||||
pageStartIndex: PropTypes.number,
|
||||
paginationSize: PropTypes.number,
|
||||
showTotal: PropTypes.bool,
|
||||
paginationTotal: PropTypes.func,
|
||||
paginationTotalRenderer: PropTypes.func,
|
||||
firstPageText: PropTypes.string,
|
||||
prePageText: PropTypes.string,
|
||||
nextPageText: PropTypes.string,
|
||||
@ -186,7 +186,7 @@ Pagination.defaultProps = {
|
||||
withFirstAndLast: Const.With_FIRST_AND_LAST,
|
||||
alwaysShowAllBtns: Const.SHOW_ALL_PAGE_BTNS,
|
||||
showTotal: Const.SHOW_TOTAL,
|
||||
paginationTotal: Const.PAGINATION_TOTAL,
|
||||
paginationTotalRenderer: Const.PAGINATION_TOTAL,
|
||||
firstPageText: Const.FIRST_PAGE_TEXT,
|
||||
prePageText: Const.PRE_PAGE_TEXT,
|
||||
nextPageText: Const.NEXT_PAGE_TEXT,
|
||||
|
||||
@ -146,7 +146,7 @@ export default (Base, {
|
||||
hideSizePerPage={ hideSizePerPage }
|
||||
hidePageListOnlyOnePage={ hidePageListOnlyOnePage }
|
||||
showTotal={ options.showTotal }
|
||||
paginationTotal={ options.paginationTotal }
|
||||
paginationTotalRenderer={ options.paginationTotalRenderer }
|
||||
firstPageText={ options.firstPageText || Const.FIRST_PAGE_TEXT }
|
||||
prePageText={ options.prePageText || Const.PRE_PAGE_TEXT }
|
||||
nextPageText={ options.nextPageText || Const.NEXT_PAGE_TEXT }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user