How can I add a specific data to an element added by DefaulContent of the DataTable?
How can I add a specific data to an element added by DefaulContent of the DataTable?

Hello everyone, apologies if something similar has already been solved in another post, what I want to do is that when obtaining the data with AJAX from a PHP file, that returns me a data object from which I want to take data from a column specify and add it in HREF attribute of tag A in defaulContent, how can I achieve that?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Use
columns.render
to dynamically create a link using row data. There is an example in the docs.Kevin
Thaks kthorngren, It worked perfectly for me, I should have read the documentation better, again thanks for the help!
regards.