{hero}

info.empty

Since: DataTables 2.0

Empty table text.

Description

This option can be used to configure the text that is shown by the information feature when the table is empty.

This option will default to the value given by language.infoEmpty, which should generally be preferred over this option as the language strings can be loaded by Ajax and shared for the whole table, but if needed, this option is available to override that.

Type

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

Default

Defaults to the language.infoEmpty option.

Example

Customise the empty message:

new DataTable('#myTable', {
	layout: {
		bottomStart: {
			info: {
				empty: 'No entries to show'
			}
		}
	}
});

Related

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