{hero}

info

Since: DataTables 2.0

Table info display is updated.

Description

The info event is fired every table the table is drawn. It is used to display information about the table, such as the paging state (although other information could also be shown). Use the API to get details about the current paging state, if required for your information display (e.g. page.info() would be appropriate here).

Note that the search will be fired after the information element has been written to by the built in display renderer. This means that writing to the info element will cause your own output to be displayed, rather than the DataTables created text.

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, el, str )

Parameters:

Related

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