daniel-nagy / md-data-table

Material Design Data Table for Angular Material
MIT License
1.9k stars 519 forks source link

[Feature Request] Map pagination buttons individually #388

Open jrcollins4 opened 8 years ago

jrcollins4 commented 8 years ago

Hey Daniel --

Lovely library. This has been working out really nicely for me.

We are implementing a hypermedia REST API, and it would be nice if I could have the option to assign the pagination buttons a value or object that would contain the appropriate link to follow.

If this isn't possible, it would at least be nice to know in the pagination callback function which of the 4 pagination buttons was called, so I can handle this appropriately.

Right now, I am basically having to determine which of the buttons was clicked by calculating the offset each time, which is overkill for this type of thing.

How possible would this be to implement?

Thanks again for your work!