Select a single column from a table.
Select an individual column to work with from a DataTable, with its chained methods providing the ability to get work with the column, taking actions such as toggling its visibility or obtaining the data from the column.
Note that this method selects a single column. If the selector provided resolves to multiple columns, the result will be truncated to just a single column - the first one found. If you need to work with multiple columns, the
columns() method is available with the same selection options.
function column( columnSelector [, modifier ] )
Select the column found by a the column selector
Name Type Optional 1
Yes - default:
Option used to specify how the content's of the selected columns should be ordered, and if paging or filtering in the table should be taken into account. This is only useful for operations which involve rows, such as
DataTables API instance with selected column in the result set.
The following options are directly related and may also be useful in your application development.