{hero}

columns

Since: DataTables 1.10

Set column specific initialisation properties.

Description

The columns option in the initialisation parameter allows you to define details about the way individual columns behave. For a full list of column options that can be set, please see the related parameters below.

Note that if you use columns to define your columns, you must have an entry in the array for every single column that you have in your table (these can be null if you don't wish to specify any options).

Type

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

Example

Disable filtering on the first column:

new DataTable('#myTable', {
	columns: [{ searchable: false }, null, null, null, null]
});

Related

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