Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page event isn't being triggered by a page length change #255

Open
pjfsilva opened this issue Jan 24, 2024 · 1 comment
Open

Page event isn't being triggered by a page length change #255

pjfsilva opened this issue Jan 24, 2024 · 1 comment

Comments

@pjfsilva
Copy link

On the page event docs it says:

The page event is fired when table's paging state changes. This can be the end user selecting the page to view or the page length from the built-in controls, or when the page state is altered by the API (page()).

It seems that changing the page length isn't triggering the page event: https://live.datatables.net/gulaqubo/1/edit

Steps to reproduce:

  1. Go to https://live.datatables.net/gulaqubo/1/edit
  2. open console
  3. click on pagination control at the bottom, page 2 -> console shows "page" event being triggered - CORRECT
  4. click on 'show 10 entries' and change it to 25. -> console doesn't show anything meaning page event isn't being triggered.
  5. API page() is also triggering the event properly
@akeni
Copy link

akeni commented Mar 5, 2024

What you're looking for is the event:

length.dt (results per page change)
page.dt (pagination change)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants