{hero}

infoCallback

Since: DataTables 1.10

Table summary information display callback.

Description

This option can be used to customise the display text of the info feature of DataTables.

It is an alias to info.callback, which should be preferred when using DataTables 2+. If multiple info features are used for a table, infoCallback will be used for all of them, while info.callback is unique to each instance.

Type

function infoCallback( settings, start, end, max, total, pre )

Parameters:
Returns:

The string to be displayed in the information element.

Example

Show start to end indexes in the information element:

new DataTable('#myTable', {
	infoCallback: function (settings, start, end, max, total, pre) {
		return start + ' to ' + end;
	}
});

Related

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