Custom rendered data as stored functions
Custom rendered data as stored functions
Hi,i have the same custom computed-rendered data fields in many different datatables and i want to save-store this rendered code as a function in myfunctions.js .
How can this be possible?How can i save this code in a function and how to call it inside data field so that i don't write the same code in many different locations?
I am confused about how to call the stored function in the "render" section of field.
eg. function (data, type, row) { ...}
could be MyStoredFunction (data, type, row) {.... }
?
This question has an accepted answers - jump to answer
Answers
Are you looking fro something like this?
http://live.datatables.net/haximovi/1/edit
Kevin
Nice!
I will try and let you know.
It works like a charm!
Thank you.