Web: People: Fixed names of paging propertys, added selectedPage and selectedCount propertys

This commit is contained in:
Ilya Oleshko 2019-08-05 16:05:08 +03:00
parent 812d8db364
commit 04d139210d

View File

@ -82,7 +82,7 @@ const SectionPagingContent = ({ fetchPeople, filter, onLoading }) => {
console.log("Paging onChangePage", pageItem);
}, []);*/
const perPageItems = useMemo(() => [
const countItems = useMemo(() => [
{
key: 25,
label: "25 per page"
@ -104,14 +104,16 @@ const SectionPagingContent = ({ fetchPeople, filter, onLoading }) => {
nextLabel="Next"
//pageItems={pageItems}
//onSelectPage={onChangePage}
perPageItems={perPageItems}
onSelectPerPage={onChangePageSize}
countItems={countItems}
onSelectCount={onChangePageSize}
displayItems={false}
disablePrevious={!filter.hasPrev()}
disableNext={!filter.hasNext()}
previousAction={onPrevClick}
nextAction={onNextClick}
openDirection="top"
//selectedPage={} //FILTER CURRENT PAGE
//selectedCount={} //FILTER PAGE COUNT
/>
);
};