Ignite UI for Angular Column - Documentation The Ignite UI Column is used within an igx-grid element to define what data the column will show. Features such as sorting, filtering & editing are enabled at the column level. You can also provide a template containing custom content inside the column using ng-template which will be used for all cells within the column.

Sets/gets custom properties provided in additional template context.

additionalTemplateContext: any

Sets/gets whether the column header is included in autosize logic. Useful when template for a column header is sized based on parent, for example a default div. Default value is false.

autosizeHeader: boolean

Returns a reference to the bodyTemplate.

bodyTemplate: (ctx: IgrCellTemplateContext) => React.ReactNode

Sets a conditional class selector of the column cells. Accepts an object literal, containing key-value pairs, where the key is the name of the CSS class, while the value is either a callback function that returns a boolean, or boolean, like so:

cellClasses: any

Sets conditional style properties on the column cells. Similar to ngStyle it accepts an object literal where the keys are the style properties and the value is the expression to be evaluated. As with cellClasses it accepts a callback function.

cellStyles: any

Column index where the current field should end. The amount of columns between colStart and colEnd will determine the amount of spanning columns to that field

colEnd: number

Column index from which the field is starting.

colStart: number

Sets/gets the data type of the column values. Default value is string.

dataType: GridColumnDataType

Sets/gets the summary operands to exclude from display. Accepts an array of string keys representing the summary types to disable, such as 'Min', 'Max', 'Count' etc.

disabledSummaries: string[]

Gets whether the hiding is disabled.

disableHiding: boolean

Gets whether the pinning is disabled.

disablePinning: boolean

Gets whether the column is editable. Default value is false.

editable: boolean

Pass optional properties for the default column editors.

editorOptions: IgrColumnEditorOptions

Returns a reference to the validation error template.

errorTemplate: (ctx: IgrCellTemplateContext) => React.ReactNode

Sets/gets the field value.

field: string

Sets/gets whether the column is filterable. Default value is true.

filterable: boolean

Returns a reference to the filterCellTemplate.

filterCellTemplate: (ctx: IgrColumnTemplateContext) => React.ReactNode

Sets/gets whether the column filtering should be case sensitive. Default value is true.

filteringIgnoreCase: boolean

Gets the column filters.

filters: IgrFilteringOperand

Applies display format to cell values in the column. Does not modify the underlying data.

formatter: any

Sets/gets whether the column is groupable. Default value is false.

groupable: boolean

Gets a value indicating whether the summary for the column is enabled.

hasSummary: boolean

Sets/gets the header value.

header: string

Sets/gets the class selector of the column header.

headerClasses: string

Sets/gets the class selector of the column group header.

headerGroupClasses: string

Sets conditional style properties on the column header group wrapper. Similar to ngStyle it accepts an object literal where the keys are the style properties and the value is the expression to be evaluated.

headerGroupStyles: any

Sets conditional style properties on the column header. Similar to ngStyle it accepts an object literal where the keys are the style properties and the value is the expression to be evaluated.

headerStyles: any

Returns a reference to the header template.

headerTemplate: (ctx: IgrColumnTemplateContext) => React.ReactNode

Gets whether the column is hidden.

hidden: boolean

Returns a reference to the inline editor template.

inlineEditorTemplate: (ctx: IgrCellTemplateContext) => React.ReactNode

Sets/gets the maximum width of the column.

maxWidth: string

Sets/gets whether to merge cells in this column.

merge: boolean

Sets/gets the minimum width of the column. Default value is 88;

minWidth: string

Sets/gets the parent column.

parent: IgrColumnComponent

Gets whether the column is pinned.

pinned: boolean

Gets the pinning position of the column.

let pinningPosition = this.column.pinningPosition;
pinningPosition: ColumnPinningPosition
pipeArgs: IgrColumnPipeArgs

Sets/gets whether the column is resizable. Default value is false.

resizable: boolean

Row index where the current field should end. The amount of rows between rowStart and rowEnd will determine the amount of spanning rows to that field

rowEnd: number

Row index from which the field is starting.

rowStart: number

Sets/gets whether the column is searchable. Default value is true.

searchable: boolean

Returns if the column is selectable.

selectable: boolean

Returns if the column is selected.

selected: boolean

Sets/gets whether the column is sortable. Default value is false.

sortable: boolean

Sets/gets whether the column sorting should be case sensitive. Default value is true.

sortingIgnoreCase: boolean

Gets the column sortStrategy.

sortStrategy: IgrSortingStrategy

Gets the column summaries.

summaries: any

The summaryFormatter is used to format the display of the column summaries.

In this example, we check to see if the column name is OrderDate, and then provide a method as the summaryFormatter to change the locale for the dates to 'fr-FR'. The summaries with the count key are skipped so they are displayed as numbers.

summaryFormatter: any

Returns a reference to the summaryTemplate.

summaryTemplate: (ctx: IgrSummaryTemplateContext) => React.ReactNode

Sets/gets the title value.

title: string

Indicates whether the column will be visible when its parent is collapsed.

visibleWhenCollapsed: boolean

Gets the width of the column.

width: string

A list containing all the child columns under this column (if any). Empty without children or if this column is not Group or Layout.

get childColumns(): IgrColumnComponent[]

Returns IgrColumnComponent[]

Returns a boolean indicating if the column is a ColumnGroup.

get columnGroup(): boolean

Returns boolean

Returns a boolean indicating if the column is a ColumnLayout for multi-row layout.

get columnLayout(): boolean

Returns boolean

Returns a boolean indicating if the column is a child of a ColumnLayout for multi-row layout.

get columnLayoutChild(): boolean

Returns boolean

Returns the filteringExpressionsTree of the column.

get filteringExpressionsTree(): IgrFilteringExpressionsTree

Returns IgrFilteringExpressionsTree

Gets the column index.

get index(): number

Returns number

Returns the level of the column in a column group. Returns 0 if the column doesn't have a parent.

get level(): number

Returns number

Returns a reference to the top level parent column.

get topLevelParent(): IgrColumnComponent

Returns IgrColumnComponent

Gets the column visible index. If the column is not visible, returns -1.

get visibleIndex(): number

Returns number

Autosize the column to the longest currently visible cell value, including the header cell. ``

autosize(byHeaderOnly: boolean): void

Parameters

  • byHeaderOnly: boolean

    Set if column should be autosized based only on the header content.

Returns void

Moves a column to the specified visible index. If passed index is invalid, or if column would receive a different visible index after moving, moving is not performed. If passed index would move the column to a different column group. moving is not performed.

move(index: number): void

Parameters

  • index: number

Returns void

Example

column.move(index);

Pins the column in the specified position at the provided index in that pinned area. Defaults to index 0 if not provided, or to the initial index in the pinned area. Returns true if the column is successfully pinned. Returns false if the column cannot be pinned. Column cannot be pinned if:

  • Is already pinned
  • index argument is out of range ``
pin(index: number, pinningPosition: ColumnPinningPosition): boolean

Parameters

Returns boolean

Unpins the column and place it at the provided index in the unpinned area. Defaults to index 0 if not provided, or to the initial index in the unpinned area. Returns true if the column is successfully unpinned. Returns false if the column cannot be unpinned. Column cannot be unpinned if:

  • Is already unpinned
  • index argument is out of range ``
unpin(index: number): boolean

Parameters

  • index: number

Returns boolean

onExpandedChange(args: CustomEvent<boolean>): void

Parameters

Returns void

onHiddenChange(args: CustomEvent<boolean>): void

Parameters

Returns void

onPinnedChange(args: CustomEvent<boolean>): void

Parameters

Returns void

onWidthChange(args: CustomEvent<string>): void

Parameters

Returns void