Mottie/tablesorter

pager_ajaxProcessing could be a useful default function

toabi opened this issue ยท 3 comments

toabi commented

See widgets/widget-pager.js#L94 - if you don't configure it, it returns nothing, even if your ajax endpoint already returns the data in exactly the format you would need.

In that case you then have to everywhere configure pager_ajaxProcessing: function(data){return data}.

Could that not be the default?

Hi @toabi!

That makes total sense. I'll update both pagers (addon & widget) and it will be available in the next release.

toabi commented

By the way, what's more future-proof? Using the addon or the widget? Thanks for that quick response too! ๐ŸŽ‰

I'm maintaining both for now, but I plan on phasing out the addon in the future.