Class ϴIgxGridRowComponent

Hierarchy

  • IgxRowDirective
    • ϴIgxGridRowComponent

Index

Constructors

  • new ϴIgxGridRowComponent(grid: GridType, selectionService: IgxGridSelectionService, element: ElementRef<HTMLElement>, cdr: ChangeDetectorRef): ϴIgxGridRowComponent

Properties

cdr: ChangeDetectorRef
disabled: boolean = false

Sets whether this specific row has disabled functionality for editing and row selection. Default value is false.

this.grid.selectedRows[0].pinned = true;
element: ElementRef<HTMLElement>
grid: GridType
index: number

The index of the row.

// get the index of the second selected row
let selectedRowIndex = this.grid.selectedRows[1].index;
selectionService: IgxGridSelectionService

Accessors

  • get addRowUI(): any
  • get cellHeight(): number
  • get data(): any
  • set data(v: any): void
  • get dataRowIndex(): number
  • get expanded(): boolean
  • set expanded(val: boolean): void
  • get inEditMode(): boolean
  • get key(): any
  • get mrlRightPinnedOffset(): string
  • get nativeElement(): HTMLElement
  • The native DOM element representing the row. Could be null in certain environments.

    // get the nativeElement of the second selected row
    let selectedRowNativeElement = this.grid.selectedRows[1].nativeElement;

    Returns HTMLElement

  • get pinned(): boolean
  • set pinned(value: boolean): void
  • get rowHeight(): number

Methods

  • beginAddRow(): void
  • delete(): void
  • getContext(col: any, row: any): { $implicit: any; row: any }
  • getContextMRL(pinnedCols: any, row: any): { $implicit: any; row: any }
  • isCellActive(visibleColumnIndex: any): boolean
  • pin(): boolean
  • unpin(): boolean
  • update(value: any): void
  • Updates the specified row object and the data source record with the passed value.

    // update the second selected row's value
    let newValue = "Apple";
    this.grid.selectedRows[1].update(newValue);

    Parameters

    • value: any

    Returns void