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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

currentPage watcher #7

Open
Globerada opened this issue Feb 22, 2018 · 1 comment
Open

currentPage watcher #7

Globerada opened this issue Feb 22, 2018 · 1 comment

Comments

@Globerada
Copy link

Globerada commented Feb 22, 2018

Hi. I am trying to use prop currentPage so I can update the pagination component when some filters has been applied (start in first page).

<pagination :current-page="currentPage" :total="total" :page-size="pageSize" :callback="pageChanged" :options="paginationOptions" nav-class="padding-10" ul-class="bg-color-red" li-class="txt-color-blue">
  </pagination> 

However, modifying currentPage in root doesn't have any effect.
I have never seen a watcher with immediate and handler options. Is this correct?
Thanks!

@kimmyho
Copy link

kimmyho commented Mar 1, 2018

Yeah currently the component does not take in currentPage prop. it would be good if we can set the currentPage to the pagination.

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

No branches or pull requests

2 participants