Created
August 4, 2014 20:03
-
-
Save kjlape/eba23d50654c74d9930a to your computer and use it in GitHub Desktop.
How to do custom stuff when jQuery DataTables is processing something.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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