Skip to content

Commit

Permalink
feat: Allow totalItems prop
Browse files Browse the repository at this point in the history
  • Loading branch information
tbarry16 committed Oct 13, 2023
1 parent f156117 commit ea6bc52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Table/UncontrolledTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ export default class UncontrolledTable extends React.Component {
rows,
selectable,
sort,
totalItems,
onSelect,
onExpand,
onSort,
Expand Down Expand Up @@ -263,7 +264,7 @@ export default class UncontrolledTable extends React.Component {
currentPage={page + 1}
onClick={(pg) => this.setPage(pg - 1)}
perPage={pageSize}
totalItems={rows.length}
totalItems={totalItems || rows.length}
/>
</>
)}
Expand Down

0 comments on commit ea6bc52

Please sign in to comment.