mariuszfoltak / angular2-datatable

DataTable - Simple table component with sorting and pagination for Angular2
202 stars 183 forks source link

Is there a way to access the rowsOnPage variable from the directive? #154

Open COLTstreet opened 6 years ago

COLTstreet commented 6 years ago

Hi,

I'm trying to figure out if there is a way to access the rowsOnPage variable?

When the user navigates away from the page, I want to capture how many rows they've chosen to display.

For example: If I came to the page and the page and the default was 5 > then I changed the display to show 10 > then I navigated away from the page

I'd want to know what the last RowsOnPageSet selection was. I'm just having trouble accessing that variable within the directive/component.ts

Any help would be appreciated!

agnaveen commented 5 years ago

I also got same problem.

Did you find any solution @COLTstreet ?

jazzlikethat commented 5 years ago

I am facing the same issue.

I need to access activePage and rowsOnPage when the user changes any of the value.

Is there any solution ?