Change action performed by selecting page length from the length menu
Change action performed by selecting page length from the length menu

Hi
I am trying to overwrite the action performed when choosing a value in the length menu. The standard action is to adjust the amount of entries shown, but I'd rather perform a different action like updating the whole data set on which the table depends upon. Is there a way to adjust that action?
Thanks for your time.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Always good to take a look at the list of data tables events:
https://datatables.net/reference/event/
Particularly this one shoud be helpful:
https://datatables.net/reference/event/page
This one looks even better for your purpose:
https://datatables.net/reference/event/length
You could do this for example: