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

fnDrawCallback function which accepts a callback itself

$
0
0
I have the following:

	var oTable = $('#patient_table').dataTable( {
                 ....
		"fnDrawCallback": loadModalLinks,
	});

loadModalLinks is defined in another js file which is included, loadModalLinks also takes in a callback function via the first argument, how would you write this? I'm also using jquery.

As the following does not work:

...
 "fnDrawCallback": loadModalLinks(function () {})

Viewing all articles
Browse latest Browse all 82439

Trending Articles



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