Hierarchy

Hierarchy

Properties

additionalTemplateContext?: any
autosizeHeader?: string | boolean
bodyTemplate?: FunctionComponent<{
    dataContext: IgrCellTemplateContext;
}> | Component<{
    dataContext: IgrCellTemplateContext;
}, {}, any>

Returns a reference to the bodyTemplate.

let bodyTemplate = this.column.bodyTemplate;

Memberof

IgxColumnComponent

cellClasses?: any
cellStyles?: any
children?: ReactNode
className?: string
colEnd?: string | number
colStart?: string | number
collapsible?: string | boolean
collapsibleIndicatorTemplate?: FunctionComponent<{
    dataContext: IgrColumnTemplateContext;
}> | Component<{
    dataContext: IgrColumnTemplateContext;
}, {}, any>

Allows you to define a custom template for expand/collapse indicator

Memberof

IgxColumnGroupComponent

dataType?: string | GridColumnDataType
disableHiding?: string | boolean

Gets whether the hiding is disabled.

let isHidingDisabled =  this.column.disableHiding;

Memberof

IgxColumnComponent

disablePinning?: string | boolean

Gets whether the pinning is disabled.

let isPinningDisabled =  this.column.disablePinning;

Memberof

IgxColumnComponent

editable?: string | boolean

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

let isEditable = this.column.editable;

Memberof

IgxColumnComponent

errorTemplate?: FunctionComponent<{
    dataContext: IgrCellTemplateContext;
}> | Component<{
    dataContext: IgrCellTemplateContext;
}, {}, any>

Returns a reference to the validation error template.

let errorTemplate = this.column.errorTemplate;
expanded?: string | boolean
field?: string
filterCellTemplate?: FunctionComponent<{
    dataContext: IgrColumnTemplateContext;
}> | Component<{
    dataContext: IgrColumnTemplateContext;
}, {}, any>

Returns a reference to the filterCellTemplate.

let filterCellTemplate = this.column.filterCellTemplate;

Memberof

IgxColumnComponent

filterable?: string | boolean
filteringIgnoreCase?: string | boolean

Gets the column filters.

let columnFilters = this.column.filters'

Memberof

IgxColumnComponent

formatter?: ((value, rowData) => any)

Type declaration

    • (value, rowData): any
    • Applies display format to cell values in the column. Does not modify the underlying data.

      Remark

      Note: As the formatter is used in places like the Excel style filtering dialog, in certain scenarios (remote filtering for example), the row data argument can be undefined. In this example, we check to see if the column name is Salary, and then provide a method as the column formatter to format the value into a currency string.

      Example

      columnInit(column: IgxColumnComponent) {
      if (column.field == "Salary") {
      column.formatter = (salary => this.format(salary));
      }
      }
      format(value: number) : string {
      return formatCurrency(value, "en-us", "$");
      }

      Example

      const column = this.grid.getColumnByName('Address');
      const addressFormatter = (address: string, rowData: any) => data.privacyEnabled ? 'unknown' : address;
      column.formatter = addressFormatter;

      Memberof

      IgxColumnComponent

      Parameters

      • value: any
      • rowData: any

      Returns any

groupable?: string | boolean
hasSummary?: string | boolean

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

let hasSummary = this.column.hasSummary;

Memberof

IgxColumnComponent

header?: string
headerClasses?: string
headerGroupClasses?: string
headerGroupStyles?: any
headerStyles?: any
headerTemplate?: FunctionComponent<{
    dataContext: IgrColumnTemplateContext;
}> | Component<{
    dataContext: IgrColumnTemplateContext;
}, {}, any>

Returns a reference to the header template.

let headerTemplate = this.column.headerTemplate;

Memberof

IgxColumnComponent

hidden?: string | boolean

Gets whether the column is hidden.

let isHidden = this.column.hidden;

Memberof

IgxColumnComponent

id?: string
inlineEditorTemplate?: FunctionComponent<{
    dataContext: IgrCellTemplateContext;
}> | Component<{
    dataContext: IgrCellTemplateContext;
}, {}, any>

Returns a reference to the inline editor template.

let inlineEditorTemplate = this.column.inlineEditorTemplate;

Memberof

IgxColumnComponent

maxWidth?: string
minWidth?: string
name?: string
parent?: any

Sets/gets the parent column.

let parentColumn = this.column.parent;
this.column.parent = higherLevelColumn;

Memberof

IgxColumnComponent

pinned?: string | boolean

Gets whether the column is pinned.

let isPinned = this.column.pinned;

Memberof

IgxColumnComponent

resizable?: string | boolean
rowEnd?: string | number
rowStart?: string | number
searchable?: string | boolean
selectable?: string | boolean

Returns if the column is selectable.

let columnSelectable = this.column.selectable;

Memberof

IgxColumnComponent

selected?: string | boolean

Returns if the column is selected.

let isSelected = this.column.selected;

Memberof

IgxColumnComponent

sortStrategy?: IgrSortingStrategy

Gets the column sortStrategy.

let sortStrategy = this.column.sortStrategy

Memberof

IgxColumnComponent

sortable?: string | boolean
sortingIgnoreCase?: string | boolean
style?: CSSProperties
summaries?: any

Gets the column summaries.

let columnSummaries = this.column.summaries;

Memberof

IgxColumnComponent

summaryFormatter?: ((summary, summaryOperand) => any)

Type declaration

summaryTemplate?: FunctionComponent<{
    dataContext: IgrSummaryTemplateContext;
}> | Component<{
    dataContext: IgrSummaryTemplateContext;
}, {}, any>

Returns a reference to the summaryTemplate.

let summaryTemplate = this.column.summaryTemplate;

Memberof

IgxColumnComponent

title?: string
visibleWhenCollapsed?: string | boolean
width?: string

Gets the width of the column.

let columnWidth = this.column.width;

Memberof

IgxColumnComponent