Closed ghost closed 7 years ago
It is explained in the wiki: https://github.com/ypnos-web/cakephp-datatables/wiki/Callback-functions
You cannot pass a javascript function object as a string. That is why you need to use the callback wrapper, e.g.
'render' => $this->DataTables->callback('dt.render.date'),
Alright, thank you. Where, in the options array, would I bind an alert to for example draw.dt ?
Hi,
I'm sorry I seem to have some trouble understanding how to attach a callback to the draw event. I've tried numerous things none of which seem to work.
Could you maybe provide an example? If you have other things to do, don't mind this. I'm still relatively new to coding and I just seem not to get how to get this to work, as I'm sure it is just an amateur's mistake.
My code right now is: