Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81971

Custom rendered data as stored functions

$
0
0

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) {.... } ?


Viewing all articles
Browse latest Browse all 81971

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>