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.

IgcColumnComponent

new IgcColumnComponent(args: any[]): IgcColumnComponent

Returns IgcColumnComponent

The tagName read-only property of the Element interface returns the tag name of the element on which it's called.

MDN Reference

tagName: string
additionalTemplateContext: any
autosizeHeader: boolean
bodyTemplate: IgcRenderFunction<IgcCellTemplateContext>
cellClasses: any
cellStyles: any
colEnd: number
colStart: number
dataType: GridColumnDataType
disabledSummaries: string[]
disableHiding: boolean
disablePinning: boolean
editable: boolean
editorOptions: IgcColumnEditorOptions
errorTemplate: IgcRenderFunction<IgcCellTemplateContext>
field: string
filterable: boolean
filterCellTemplate: IgcRenderFunction<IgcColumnTemplateContext>
filteringIgnoreCase: boolean
filters: IgcFilteringOperand
formatter: any
groupable: boolean
hasSummary: boolean
header: string
headerClasses: string
headerGroupClasses: string
headerGroupStyles: any
headerStyles: any
headerTemplate: IgcRenderFunction<IgcColumnTemplateContext>
hidden: boolean
inlineEditorTemplate: IgcRenderFunction<IgcCellTemplateContext>
maxWidth: string
merge: boolean
minWidth: string
parent: IgcColumnComponent
pinned: boolean
pinningPosition: ColumnPinningPosition
pipeArgs: IgcColumnPipeArgs
resizable: boolean
rowEnd: number
rowStart: number
searchable: boolean
selectable: boolean
selected: boolean
sortable: boolean
sortingIgnoreCase: boolean
sortStrategy: IgcSortingStrategy
summaries: any
summaryFormatter: any
summaryTemplate: IgcRenderFunction<IgcSummaryTemplateContext>
title: string
visibleWhenCollapsed: boolean
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(): IgcColumnComponent[]

Returns IgcColumnComponent[]

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(): IgcFilteringExpressionsTree

Returns IgcFilteringExpressionsTree

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(): IgcColumnComponent

Returns IgcColumnComponent

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

get visibleIndex(): number

Returns number

Inherited from: EventEmitterMixin<IgcColumnComponentEventMap, Constructor<LitElement>>(LitElement)

addEventListener(type: K, listener: object, options: boolean | AddEventListenerOptions): void

Parameters

  • type: K
  • listener: object
  • options: boolean | AddEventListenerOptions

Returns void

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

Inherited from: EventEmitterMixin<IgcColumnComponentEventMap, Constructor<LitElement>>(LitElement)

removeEventListener(type: K, listener: object, options: boolean | EventListenerOptions): void

Parameters

  • type: K
  • listener: object
  • options: boolean | EventListenerOptions

Returns void

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

register(): void

Returns void

Emitted when the column expanded or collapsed.

<igx-column (expandedChange)="expandedChange($event)">
</igx-column>
expandedChange: CustomEvent<boolean>

Emitted when the column is hidden or shown.

<igx-column (hiddenChange)="hiddenChange($event)">
</igx-column>
hiddenChange: CustomEvent<boolean>

Emitted when the column is pinned/unpinned.

<igx-column (pinnedChange)="pinnedChange($event)">
</igx-column>
pinnedChange: CustomEvent<boolean>

Emitted when the column width changes.

<igx-column (widthChange)="widthChange($event)">
</igx-column>
widthChange: CustomEvent<string>