Providing reference to IgxGridCellComponent:

@ViewChild('grid', { read: IgxGridComponent })
 public grid: IgxGridComponent;
let column = this.grid.columnList.first;
let cell = column.cells[0];

IgxGridCellComponent

new IgxGridCellComponent(): IgxGridCellComponent

Returns IgxGridCellComponent

Sets/gets the active highlight class class of the cell. Default value is "igx-highlight__active".

let activeHighlightClass = this.cell.activeHighlightClass;
this.cell.activeHighlightClass = 'igx-cell-highlight_active';
activeHighlightClass: string = 'igx-highlight__active'

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:821

cdr: ChangeDetectorRef

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:116

Sets/gets the template of the cell.

<ng-template #cellTemplate igxCell let-value>
  <div style="font-style: oblique; color:blueviolet; background:red">
      <span>{{value}}</span>
  </div>
</ng-template>
@ViewChild('cellTemplate',{read: TemplateRef})
cellTemplate: TemplateRef<any>;
this.cell.cellTemplate = this.cellTemplate;
let template =  this.cell.cellTemplate;
cellTemplate: TemplateRef<any>

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:246

cellValidationErrorTemplate: TemplateRef<any>

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:249

Gets the column of the cell.

let cellColumn = this.cell.column;
column: ColumnType

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:162

Returns whether the cell is in edit mode.

editMode: boolean = false

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:522

Gets the cell formatter.

let cellForamatter = this.cell.formatter;
formatter: object

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:277

Represents the grid instance containing the cell

grid: GridType

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:114

Sets/gets the highlight class of the cell. Default value is "igx-highlight".

let highlightClass = this.cell.highlightClass;
this.cell.highlightClass = 'igx-cell-highlight';
highlightClass: string = 'igx-highlight'

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:807

Gets whether this cell is a merged cell.

isMerged: boolean

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:175

pinnedIndicator: TemplateRef<any>

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:252

Sets/get the role property of the cell. Default value is "gridcell".

this.cell.role = 'grid-cell';
let cellRole = this.cell.role;
role: string = 'gridcell'

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:537

Gets the data of the row of the cell.

let rowData = this.cell.rowData;
rowData: any

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:214

Sets/gets the cell value.

this.cell.value = "Cell Value";
let cellValue = this.cell.value;
value: any

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:266

Gets the width of the cell.

let cellWidth = this.cell.width;
width: string = ''

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:630

The value to display when the cell is in edit mode.

editValue: any

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:697, projects/igniteui-angular/grids/core/src/cell.component.ts:712

Indicates whether the cell is currently selected. It is false, if the sell is not selected, and true, if it is.

selected: boolean

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:653, projects/igniteui-angular/grids/core/src/cell.component.ts:665

The index of the column that the cell belongs to. It counts only the visible (not hidden) columns

visibleColumnIndex: number

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:397, projects/igniteui-angular/grids/core/src/cell.component.ts:401

get ariaSelected(): boolean

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:640

Returns boolean

get attrCellID(): string

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:420

Returns string

get booleanClass(): any

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:452

Returns any

Gets the ID of the cell.

let cellID = this.cell.cellID;
get cellID(): object

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:413

Returns object

get colEnd(): number

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:609

Returns number

get colStart(): number

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:617

Returns number

Gets the index of the cell column.

let columnIndex = this.cell.columnIndex;
get columnIndex(): number

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:383

Returns number

Gets whether the cell column is selected.

let isCellColumnSelected = this.cell.columnSelected;
get columnSelected(): boolean

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:684

Returns boolean

Gets the cell template context object.

let context = this.cell.context();
get context(): IgxCellTemplateContext

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:287

Returns IgxCellTemplateContext

Returns whether the cell is editable.

get editable(): boolean

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:721

Returns boolean

get gridColumnSpan(): number

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:601

Returns number

Gets the id of the grid in which the cell is stored.

let gridId = this.cell.gridID;
get gridID(): any

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:357

Returns any

get gridRowSpan(): number

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:597

Returns number

Returns a reference to the nativeElement of the cell.

let cellNativeElement = this.cell.nativeElement;
get nativeElement(): HTMLElement

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:464

Returns HTMLElement

Gets the pinned indicator template.

let template = this.cell.pinnedIndicatorTemplate;
get pinnedIndicatorTemplate(): TemplateRef<any>

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:342

Returns TemplateRef<any>

Gets whether the cell is editable.

let isCellReadonly = this.cell.readonly;
get readonly(): boolean

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:548

Returns boolean

Gets the row of the cell.

let cellRow = this.cell.row;
get row(): RowType

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:201

Returns RowType

get rowEnd(): number

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:605

Returns number

Gets the index of the row where the cell is stored.

let rowIndex = this.cell.rowIndex;
get rowIndex(): number

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:371

Returns number

get rowStart(): number

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:613

Returns number

Gets the cell template.

let template = this.cell.template;
get template(): TemplateRef<any>

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:317

Returns TemplateRef<any>

An optional title to display for the cell

get title(): any

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:425

Returns any

Clears the highlight of the text in the cell.

this.cell.clearHighLight();
clearHighlight(): void

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:1206

Returns void

If the provided string matches the text in the cell, the text gets highlighted.

this.cell.highlightText('Cell Value', true);
highlightText(text: string, caseSensitive: boolean, exactMatch: boolean): number

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:1194

Parameters

  • text: string
  • caseSensitive: boolean
  • exactMatch: boolean

Returns number

A callback method that is invoked immediately after Angular has completed initialization of a component's view. It is invoked only once when the view is instantiated.

ngAfterViewInit(): void

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:899

Returns void

Starts/ends edit mode for the cell.

cell.setEditMode(true);
setEditMode(value: boolean): void

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:998

Parameters

  • value: boolean

Returns void

Sets new value to the cell.

this.cell.update('New Value');
update(val: any): void

Defined in projects/igniteui-angular/grids/core/src/cell.component.ts:1023

Parameters

  • val: any

Returns void