{hero}

column().name()

Since: DataTables 2.3.0

Get the name for the selected column.

Description

This method provides the ability to retrieve the name that has been set via the columns.name option. This can be useful for the identification of a column, particularly when using orthogonal data, however, it does not functionally change the behaviour of a DataTable.

Type

column().name()

Get the name that has been set for the selected column (set via columns.name).

Returns:

stringThe column name, or an empty string if not set.

Related

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