Hi guys, ( @pablohpsilva )
How to grab the "currentPage" or "page" information of the md-table-pagination? I searched this on the documentation but not found this info.
i saw that is emited an event about this in the index.js in the folder mdTable of the component but i dont know how to get this on.
thanks advance
If you have this:
<md-table-pagination @pagination="onPagination"></md-table-pagination>
Then:
onPagination(evt) {
console.log(evt.page); // <-- here you are
}
Hi @jonataswalker ,
This works, I think it would be nice to insert this information into the documentation about these events, they are very usefull.
thanks man
Yeah @jonataswalker . There is no documentation about it check it out. We have to add it.
Thank you @alesanfer
Oh. That's bad. I have to do it. Sorry about that.
Documentation updated on PR #787
Most helpful comment
If you have this:
Then: