{hero}

processing

Since: DataTables 1.10

Processing event - fired when DataTables is processing data.

Description

This event is fired when DataTables is doing some kind of processing - be it, sorting, filtering or any other kind of data processing. It can be used to indicate to the end user that there is something happening, or that something has finished.

Note that this event is used by DataTables' processing display option, and can be useful if you want to replace the DataTables built-in processing indicator with a custom indicator - one which is used in other parts of your application for example.

Please note that, as with all DataTables emitted events, the event object has a DataTables API instance available on it (the first parameter). Additionally, the events are triggered with the dt namespace. As such, to listen for this event, you must also use the dt namespace by simply appending .dt to your event name, as shown in the example below.

Type

function function( e, settings, processing )

Parameters:

Example

Show / hide notification of table processing (where #example is the DataTable):

$('#example')
	.on('processing.dt', function (e, settings, processing) {
		$('#processingIndicator').css('display', processing ? 'block' : 'none');
	})
	.DataTable();

Related

The following options are directly related and may also be useful in your application development.