Attributes and methods available on the Column
instance.
Column Methods
| Returns the unique ID for the column.
Equivalent: getId , getUniqueId |
| Returns the column definition for this column.
The column definition will be the result of merging the application provided column definition with any provided defaults
(e.g. defaultColDef grid option, or column types.
Equivalent: getDefinition |
| Returns the column definition provided by the application.
This may not be correct, as items can be superseded by default column options.
However it's useful for comparison, eg to know which application column definition matches that column. |
| Returns the parent column group, if column grouping is active. |
| Returns true if column filtering is allowed. |
| Returns true if filter is active on the column. |
| Returns true if the cell for this column is editable for the given rowNode , otherwise false . |
| Returns true when this Column is hovered, otherwise false |
| If sorting is active, returns the sort direction e.g. 'asc' or 'desc' . |
| If aggregation is set for the column, returns the aggregation function. |
| Returns the current width of the column. If the column is resized, the actual width is the new size. |
| Returns true if row group is currently active for this column. |
| Returns true if pivot is currently active for this column. |
| Returns true if value (aggregation) is currently active for this column. |
| Returns true if column is a primary column, false if secondary. Secondary columns are used for pivoting. |
| Add an event listener to the column. |
| Remove event listener from the column. |
Events on Column
Columns emit the following events:
| The filter active value has changed. |
| The sort value has changed. |
| The left position has changed (e.g. column has moved). |
| The column has started / finished moving (i.e. user is dragging the column to a new location). |
| The width value has changed. |
| The visibility value has changed. |
| The column menu was shown / hidden. |
columnRowGroupChanged | The row group value has changed. |
columnPivotChanged | The pivot value has changed. |
columnValueChanged | The 'value' value has changed. |