Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(pagination): added support to programmatically change active page #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tomisykora
Copy link

@tomisykora tomisykora commented Mar 17, 2021

Hi @estevanmaito ! There are cases where users needs to programmatically change the active page number, eg. when
searching, the page should change to first page. So that's what has been added here in this pull request. I also added Pagination storybook and test coverage for this use case. Thanks in advance for looking into it! 馃槉

This resolves #42

There are cases where users needs to programmatically change the active page number, eg. when
searching, the page should change to first page.

resolves estevanmaito#42
@codecov
Copy link

codecov bot commented Mar 17, 2021

Codecov Report

Merging #44 (5e1145a) into master (b7afcfd) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #44   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           29        29           
  Lines          495       495           
  Branches        77        77           
=========================================
  Hits           495       495           
Flag Coverage 螖
unittest 100.00% <100.00%> (酶)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage 螖
src/Pagination.tsx 100.00% <100.00%> (酶)

Continue to review full report at Codecov.

Legend - Click here to learn more
螖 = absolute <relative> (impact), 酶 = not affected, ? = missing data
Powered by Codecov. Last update b7afcfd...5e1145a. Read the comment docs.

@IvanTodorovv
Copy link

The change looks good , any reason why this is not merged yet? @estevanmaito

@kenjoesavandal
Copy link

I need this also, please merged this..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support to programmatically change active page for Pagination
4 participants