{hero}

ordering.indicators

Since: DataTables 2.3

Control the display of the ordering indicators in header cells.

Description

When ordering is enabled in a DataTable you will typically want a visual indication of the applied ordering shown to the end user - this option controls that indicator in the table header cells. When enabled, the header cells will have a span added to them (with the class dt-column-order) added to them to show the ordering status of a column.

It can be useful to disable this ability if you wish to use an extension such as ColumnControl to control and indicate column ordering.

It is worth highlighting that this option interacts with columns.orderable: if disabled, the indicator will not be shown.

Type

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

Default

true

Example

Disable the built in ordering indicators:

new DataTable('#myTable', {
	ordering: {
		indicators: false
	}
});

Related

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