I tried to migrate the "Full Numbers No Ellipses" plugin from https://github.com/DataTables/Plugins/blob/master/pagination/full_numbers_no_ellipses.js to be compatible with DataTables 2.
It seems like there were no parameters passed to the custom paging function anymore: https://github.com/DataTables/DataTablesSrc/blob/26a9c2f7f10d1b0f41009a6476b9784674c4767b/js/features/features.page.js#L43
However, the documentation still describes the parameters: https://github.com/DataTables/DataTablesSrc/blob/26a9c2f7f10d1b0f41009a6476b9784674c4767b/js/ext/ext.js#L197
This is how I register the function (in a TypeScript file):
import DataTable from "datatables.net"
import jQuery from 'jquery';
jQuery.extend(DataTable.ext.pager, {
full_numbers_no_ellipses: function (page: number, pages: number) {
...
}
})
Is there any chance to bring back the parameters?