Ngx-datatable: What is the differentiation between limit and pageSize in (page) event ?

Created on 12 May 2017  路  2Comments  路  Source: swimlane/ngx-datatable

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

I use externalPaging=true.
What I want to ask: In the event `(page)="someMethod($event)" we will get:

  • count
  • limit
  • pageSize
  • offset

What is the differentiation between pageSize and limit ? both of them always return same value.

Most helpful comment

How can I set pageSize??????????????????
By default, I am getting page size as 2 I want to set it as 50

All 2 comments

Limit is for server pagination.
Page size is the calculated limit based on the available space and row count + height.

They are different from each other because you can actually give it a higher limit than viewable on the page.

Hopefully that makes sense.

How can I set pageSize??????????????????
By default, I am getting page size as 2 I want to set it as 50

Was this page helpful?
0 / 5 - 0 ratings