Open madbence opened 7 years ago
<Pagination page={current} onPage={fetch} range={2} count={500} prev next first last />
page
range
count
prev
next
first
last
fetch
maybe pagination should be dynamic, so instead of page we can deal with offsets, and pageSize can be dynamic?
offset
pageSize
@ruffle1986 this might be interesting for you when you're going to work on the pagination. ⏫
page
: current pagerange
: display +/-range
pages besidespage
count
: all pagesprev
: display previous page buttonnext
: display next page buttonfirst
: display first page buttonlast
: display last page buttonfetch
: callback when a page was requestedmaybe pagination should be dynamic, so instead of
page
we can deal withoffset
s, andpageSize
can be dynamic?