What would you like that function to do? You can take a look at our hooks and filters, and see if there's anything there that can help you with this.
You should also take a look at our front-end table callback. Each table existing on the page is reflected in the global JavaScript object called ‘wpDataTables‘, so I guess you can use that in a way.
Hi
I have a JS function I would like to run once a specific table finished loading.
Is there a way?
Thanks
Erez
Hello again Erez
What would you like that function to do? You can take a look at our hooks and filters, and see if there's anything there that can help you with this.
You should also take a look at our front-end table callback. Each table existing on the page is reflected in the global JavaScript object called ‘wpDataTables‘, so I guess you can use that in a way.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
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
This hook
seems to be what I need.
Let's say I have a table with ID 13 and after it is loaded I want to call the PHP function myfunction(arg1,arg2)
What will be the correct syntax?
Thanks
That sounds correct, Erez, yes.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
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,
Thanks for getting back, but you did not answer my question:
Let's say I have a table with ID 13 and after it is loaded I want to call the PHP function myfunction(arg1,arg2)
What will be the correct syntax?
Sorry about that Erez
You should use something like this:
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
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