Skip to content

Instantly share code, notes, and snippets.

@kjlape
Created August 4, 2014 20:03
Show Gist options
  • Select an option

  • Save kjlape/eba23d50654c74d9930a to your computer and use it in GitHub Desktop.

Select an option

Save kjlape/eba23d50654c74d9930a to your computer and use it in GitHub Desktop.
How to do custom stuff when jQuery DataTables is processing something.
// Docs URL: http://datatables.net/reference/event/processing
// This is your DataTable in the DOM.
$('#example')
// Listen for the processing event.
.on('processing.dt', function(e, settings, processing) {
// The processing variable is a boolean.
if (processing)
showCustomProcessingEffects();
else
unShowCustomProcessingEffects();
})
// Don't forget to call this at the end.
.dataTable();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment