Vue-material: How to get "currentPage" information of the md-table-pagination?

Created on 25 Jan 2017  路  5Comments  路  Source: vuematerial/vue-material

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

documentation improvement

Most helpful comment

If you have this:

<md-table-pagination @pagination="onPagination"></md-table-pagination>

Then:

    onPagination(evt) {
      console.log(evt.page); // <-- here you are
    }

All 5 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maryleloisa picture maryleloisa  路  3Comments

bjarnik picture bjarnik  路  3Comments

tridcatij picture tridcatij  路  3Comments

lee-frank picture lee-frank  路  3Comments

Leshgan picture Leshgan  路  3Comments