Update pageResize plugin. Add paging parameter and callback. #359
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update pageResize plugin. Add paging parameter to pass it to the draw function call inside pageResize plugin. Add callback which called before draw and provides cancel ability and ability to override the draw paging parameter.
This update became necessary when I started to save the state of the table and decided to reflect the state in URL parameters and load the state from the URL parameters. It was necessary that one user could send a link to another user with a clearly defined list of table rows, taking into account the search string, the number of rows on the page number (despite the screen resolution differences of both users), and the sorting. At the same time, I still needed pageResize, but I had to keep it from being included in the work initially to display the same rows collection as it was sent first or at least I needed to preserve page and not reset it to first page.