DataTables / Plugins

Plug-ins for DataTables
Other
1.04k stars 1.74k forks source link

full_numbers_no_ellipses not working in v2 #586

Open mulgaBrian opened 7 months ago

mulgaBrian commented 7 months ago

I have found that the plugin does not get the parameters (page,pages). My fix is to get these from the table itself. I removed the parameters and added this.

var pageinfo = table.page.info(); var page = pageinfo.page; var pages = pageinfo.pages;

Everything now works as expected. It looks like this will apply to all the pagination plugins.

HTH Brian

AllanJard commented 7 months ago

Hi Brian,

Yes, the paging plugin API were updated a bit for v2. Thanks for posting your workaround! I'll take some time soon to update the paging plugins in this repo.

bytestream commented 7 months ago

@AllanJard was the input paging plugin updated to work with the new 1.10 or 2 API ?

AllanJard commented 7 months ago

No - I haven't had a chance to work on that yet. Pull requests welcome though. If not, I'll get to it sometime soon - hopefully this week or next all being well.

Unleashed2k commented 6 months ago

@AllanJard Any news? Any news would be helpful, thank you :)

AllanJard commented 6 months ago

Not yet. It will be ASAP though.