tochoromero / aurelia-table

Simple functional data table for Aurelia
https://tochoromero.github.com/aurelia-table
MIT License
67 stars 25 forks source link

capture page changed in aut-pagination #33

Closed mahermali closed 7 years ago

mahermali commented 7 years ago

Hi, Is there a way to capture the event for current page changed ? It will be very useful to invoke remote call to do server-side pagination. Many thanks

tochoromero commented 7 years ago

It is actually pretty easy. When you setup the table you set the currentPage property. That property has two way data binding, so all you have to do is watch it for changes. Please let me know if you need an example of how to do this.