{hero}

search.processing

Since: DataTables 2.1

Show processing indicator when searching.

Description

When working with large data sets on the client-side, it takes a finiate and possibly noticeable amount of time for a search process to run. This option can be used to tell DataTables to display its processing indicator (processing) when the user enters data into the search box.

The value should be given as a boolean, with true indicating that the processing display should show, while false means it should stay hidden.

It requires processing to be enabled to operate.

Type

This option can be given in the following type(s):

Default

Default's to false, which disables this feature.

Example

Show the processing indicator when searching large data sets:

new DataTable('#myTable', {
	layout: {
		topEnd: {
			search: {
				processing: true
			}
		}
	},
	processing: true
});

Related

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