How can i call initComplete function when event button triggered?
How can i call initComplete function when event button triggered?

How can i call initComplete function when event button triggered?
I need this because I need values from settings and json data
i try this way, but not working
$('#datatable').DataTable().ajax.reload(initComplete);
This discussion has been closed.
Answers
What is an event button?
Here is an example for a jQuery event handler.
https://datatables.net/examples/advanced_init/events_live
If you want to reload your data table on "initComplete" you can use an event or an option. The list of events is here:
https://datatables.net/reference/event/
and the list of options is here:
https://datatables.net/reference/option/
The event you would need is this one: https://datatables.net/reference/event/init
example