Class θIgxTreeGridCellComponent

Hierarchy

Index

Constructors

  • new θIgxTreeGridCellComponent(selectionService: IgxGridSelectionService, grid: GridType, overlayService: IgxOverlayService, cdr: ChangeDetectorRef, element: ElementRef<any>, zone: NgZone, touchManager: HammerGesturesManager, document: any, platformUtil: PlatformUtil): θIgxTreeGridCellComponent

Properties

activeHighlightClass: string = 'igx-highlight__active'

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';
memberof

IgxGridCellComponent

cdr: ChangeDetectorRef
cellTemplate: TemplateRef<any>

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;
memberof

IgxGridCellComponent

cellValidationErrorTemplate: TemplateRef<any>
column: ColumnType

Gets the column of the cell.

 let cellColumn = this.cell.column;
memberof

IgxGridCellComponent

defaultErrorTemplate: TemplateRef<any>

Gets the default error template.

document: any
editMode: boolean = false

Returns whether the cell is in edit mode.

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

Type declaration

    • (value: any, rowData?: any, columnData?: any): any
    • Gets the cell formatter.

      let cellForamatter = this.cell.formatter;
      
      memberof

      IgxGridCellComponent

      Parameters

      • value: any
      • Optional rowData: any
      • Optional columnData: any

      Returns any

grid: GridType
highlightClass: string = 'igx-highlight'

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

let highlightClass = this.cell.highlightClass;
this.cell.highlightClass = 'igx-cell-highlight';
memberof

IgxGridCellComponent

indentationDiv: ElementRef<any>
indicator: ElementRef<any>
pinnedIndicator: TemplateRef<any>
role: string = 'gridcell'

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

this.cell.role = 'grid-cell';
let cellRole = this.cell.role;
memberof

IgxGridCellComponent

rowData: any

Gets the data of the row of the cell.

let rowData = this.cell.rowData;
memberof

IgxGridCellComponent

value: any

Sets/gets the cell value.

this.cell.value = "Cell Value";
let cellValue = this.cell.value;
memberof

IgxGridCellComponent

width: string = ''

Gets the width of the cell.

let cellWidth = this.cell.width;
memberof

IgxGridCellComponent

Accessors

  • get ariaSelected(): boolean
  • get attrCellID(): string
  • get booleanClass(): any
  • get cellID(): { columnID: number; rowID: any; rowIndex: number }
  • Gets the ID of the cell.

    let cellID = this.cell.cellID;
    
    memberof

    IgxGridCellComponent

    Returns { columnID: number; rowID: any; rowIndex: number }

    • columnID: number
    • rowID: any
    • rowIndex: number
  • get colEnd(): number
  • get colStart(): number
  • get columnIndex(): number
  • get columnSelected(): boolean
  • get context(): any
  • get editValue(): any
  • set editValue(value: any): void
  • get editable(): boolean
  • get gridColumnSpan(): number
  • get gridID(): any
  • get gridRowSpan(): number
  • get nativeElement(): HTMLElement
  • get pinnedIndicatorTemplate(): TemplateRef<any>
  • get readonly(): boolean
  • get rowEnd(): number
  • get rowIndex(): number
  • get rowStart(): number
  • get selected(): boolean
  • set selected(val: boolean): void
  • get template(): TemplateRef<any>
  • get title(): any
  • get visibleColumnIndex(): number
  • set visibleColumnIndex(val: number): void

Methods

  • clearHighlight(): void
  • highlightText(text: string, caseSensitive?: boolean, exactMatch?: boolean): number
  • ngAfterViewInit(): void
  • setEditMode(value: boolean): void
  • update(val: any): void