- As you probably already know, regarding callbacks, the included support refers only to advice, but i will do my best to get any useful information to help you with this.
I will have to check with our 2nd level Team, and as soon as i get confirmation, i will get back to you.
Hi,
I am trying to call a JS function after a table is loaded.
I used the method that is described here:
https://wpdatatables.com/documentation/information-for-developers/front-end-callbacks/
It calls my function when the table is redrawn (After I change something in the filters).
However, I need it to call the function also after the first time the table is loaded before any filter was touched.
Who can I add also this call?
Thanks,
Erez
Hi, Erez
Thanks for reaching out to us
- As you probably already know, regarding callbacks, the included support refers only to advice, but i will do my best to get any useful information to help you with this.
I will have to check with our 2nd level Team, and as soon as i get confirmation, i will get back to you.
Thank you for your patience.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi, Erez.
Sorry that it took so long to coordinate with the developers.
They advised me on this.
- Basically, this callback from our documentation was created to work on " table draw",
so it only triggers after sorting, searching etc; like you correctly pointed out.
-
Unfortunately, we currently don't have a workaround example for what you need at this time;
but you could check out events from datatables.net, because our plugin is based on these libraries;
you could see all the events available as well as the entire API that serves as an extension for developers, when they need custom solutions.
In cases like that, we can only do our best to advise, if we don't already have a working example.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables