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