brunoseco / vue-pagination-bootstrap

Server-side paging component in vue, template based on bootstrap
MIT License
25 stars 5 forks source link

currentPage watcher #7

Open Globerada opened 6 years ago

Globerada commented 6 years ago

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 commented 6 years ago

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