lokyoung / vuejs-paginate

A Vue.js(v2.x+) component for creating pagination.
MIT License
778 stars 171 forks source link

is it possible to alter "pageCount" programmatically? #75

Closed alexander-ae closed 6 years ago

alexander-ae commented 6 years ago

I understand that page-count is required, but is it possible to alter its value programmatically?

< paginate
   : page-count = " 1 "
   : click-handler = " functionName "
   : prev-text = " 'Prev' "
   : next-text = " 'Next' "
   : container-class = " 'className' " >
 </ paginate > 
eiamei commented 6 years ago

Of course. You need to pass the variable like this. Thats all

<paginatator :page-count="count">
</paginatator>
alexander-ae commented 6 years ago

Thank you ! (It looks like I had a problem with my code)