I want to assign function and parameters to results
I want to assign function and parameters to results

The above images show a table row then a child row which get results from ajax. I'm printing whole table instead of json because i want to assign function to each of the numbers then show specific results (more details).
Param1 will be manager id and Param2 will be status like which counter details to show, like in the image Active has count of 203, so when i click on 203 it pass parameters to function then send another ajax call to show more details in modal.
So how to make work with json with function/parameters ?
Replies
You can add that with
columns.render
Colin
Its not in data table, it is in child row. columns.render work with child row ?
No columns.render does not work with Child Detail rows. If you are following the structure in the example the
format()
function is used to build the HTML for the child row. Datatables has no visibility into what you put in the HTML. You should be able to place any valid HTML you want. If you are having problems please post a link to your page or a test case so we can take a look.https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin