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.
Constructors
Section titled "Constructors"IgcColumnComponent
new IgcColumnComponent(args: any[]): IgcColumnComponent Returns IgcColumnComponent
Properties
Section titled "Properties"tagName
Section titled "tagName"The tagName read-only property of the Element interface returns the tag name of the element on which it's called.
tagName: string additionalTemplateContext
Section titled "additionalTemplateContext"additionalTemplateContext: any autosizeHeader
Section titled "autosizeHeader"autosizeHeader: boolean bodyTemplate
Section titled "bodyTemplate"bodyTemplate: IgcRenderFunction<IgcCellTemplateContext> cellClasses
Section titled "cellClasses"cellClasses: any cellStyles
Section titled "cellStyles"cellStyles: any colEnd
Section titled "colEnd"colEnd: number colStart
Section titled "colStart"colStart: number dataType
Section titled "dataType"dataType: GridColumnDataType disabledSummaries
Section titled "disabledSummaries"disabledSummaries: string[] disableHiding
Section titled "disableHiding"disableHiding: boolean disablePinning
Section titled "disablePinning"disablePinning: boolean editable
Section titled "editable"editable: boolean editorOptions
Section titled "editorOptions"editorOptions: IgcColumnEditorOptions errorTemplate
Section titled "errorTemplate"errorTemplate: IgcRenderFunction<IgcCellTemplateContext> field
Section titled "field"field: string filterable
Section titled "filterable"filterable: boolean filterCellTemplate
Section titled "filterCellTemplate"filterCellTemplate: IgcRenderFunction<IgcColumnTemplateContext> filteringIgnoreCase
Section titled "filteringIgnoreCase"filteringIgnoreCase: boolean filters
Section titled "filters"filters: IgcFilteringOperand formatter
Section titled "formatter"formatter: any groupable
Section titled "groupable"groupable: boolean hasSummary
Section titled "hasSummary"hasSummary: boolean header
Section titled "header"header: string headerClasses
Section titled "headerClasses"headerClasses: string headerGroupClasses
Section titled "headerGroupClasses"headerGroupClasses: string headerGroupStyles
Section titled "headerGroupStyles"headerGroupStyles: any headerStyles
Section titled "headerStyles"headerStyles: any headerTemplate
Section titled "headerTemplate"headerTemplate: IgcRenderFunction<IgcColumnTemplateContext> hidden
Section titled "hidden"hidden: boolean inlineEditorTemplate
Section titled "inlineEditorTemplate"inlineEditorTemplate: IgcRenderFunction<IgcCellTemplateContext> maxWidth
Section titled "maxWidth"maxWidth: string merge
Section titled "merge"merge: boolean minWidth
Section titled "minWidth"minWidth: string parent
Section titled "parent"parent: IgcColumnComponent pinned
Section titled "pinned"pinned: boolean pinningPosition
Section titled "pinningPosition"pinningPosition: ColumnPinningPosition pipeArgs
Section titled "pipeArgs"pipeArgs: IgcColumnPipeArgs resizable
Section titled "resizable"resizable: boolean rowEnd
Section titled "rowEnd"rowEnd: number rowStart
Section titled "rowStart"rowStart: number searchable
Section titled "searchable"searchable: boolean selectable
Section titled "selectable"selectable: boolean selected
Section titled "selected"selected: boolean sortable
Section titled "sortable"sortable: boolean sortingIgnoreCase
Section titled "sortingIgnoreCase"sortingIgnoreCase: boolean sortStrategy
Section titled "sortStrategy"sortStrategy: IgcSortingStrategy summaries
Section titled "summaries"summaries: any summaryFormatter
Section titled "summaryFormatter"summaryFormatter: any summaryTemplate
Section titled "summaryTemplate"summaryTemplate: IgcRenderFunction<IgcSummaryTemplateContext> title
Section titled "title"title: string visibleWhenCollapsed
Section titled "visibleWhenCollapsed"visibleWhenCollapsed: boolean width
Section titled "width"width: string Accessors
Section titled "Accessors"childColumns
Section titled "childColumns"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[]
columnGroup
Section titled "columnGroup"Returns a boolean indicating if the column is a ColumnGroup.
``
get columnGroup(): boolean Returns boolean
columnLayout
Section titled "columnLayout"Returns a boolean indicating if the column is a ColumnLayout for multi-row layout.
``
get columnLayout(): boolean Returns boolean
columnLayoutChild
Section titled "columnLayoutChild"Returns a boolean indicating if the column is a child of a ColumnLayout for multi-row layout.
``
get columnLayoutChild(): boolean Returns boolean
filteringExpressionsTree
Section titled "filteringExpressionsTree"Returns the filteringExpressionsTree of the column. ``
get filteringExpressionsTree(): IgcFilteringExpressionsTree Returns IgcFilteringExpressionsTree
index
Section titled "index"Gets the column index. ``
get index(): number Returns number
level
Section titled "level"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
topLevelParent
Section titled "topLevelParent"Returns a reference to the top level parent column. ``
get topLevelParent(): IgcColumnComponent Returns IgcColumnComponent
visibleIndex
Section titled "visibleIndex"Gets the column visible index.
If the column is not visible, returns -1.
``
get visibleIndex(): number Returns number
Methods
Section titled "Methods"addEventListener
Section titled "addEventListener"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
Section titled "autosize"Autosize the column to the longest currently visible cell value, including the header cell. ``
autosize(byHeaderOnly: boolean): void Parameters
- byHeaderOnly:
booleanSet 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
- index:
number - pinningPosition:
ColumnPinningPosition
Returns boolean
removeEventListener
Section titled "removeEventListener"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
unpin
Section titled "unpin"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
Section titled "register"register(): void Returns void
Events
Section titled "Events"expandedChange
Section titled "expandedChange"Emitted when the column expanded or collapsed.
<igx-column (expandedChange)="expandedChange($event)">
</igx-column>expandedChange: CustomEvent<boolean> hiddenChange
Section titled "hiddenChange"Emitted when the column is hidden or shown.
<igx-column (hiddenChange)="hiddenChange($event)">
</igx-column>hiddenChange: CustomEvent<boolean> pinnedChange
Section titled "pinnedChange"Emitted when the column is pinned/unpinned.
<igx-column (pinnedChange)="pinnedChange($event)">
</igx-column>pinnedChange: CustomEvent<boolean> widthChange
Section titled "widthChange"Emitted when the column width changes.
<igx-column (widthChange)="widthChange($event)">
</igx-column>widthChange: CustomEvent<string>