@catull/igniteui-angular
Version:
Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps
92 lines (91 loc) • 2.44 kB
TypeScript
import { ChangeDetectorRef, ElementRef, OnInit, AfterViewInit, ComponentFactoryResolver } from '@angular/core';
import { GridBaseAPIService } from '.././api.service';
import { IgxRowIslandComponent } from './row-island.component';
export declare class IgxChildGridRowComponent implements AfterViewInit, OnInit {
gridAPI: GridBaseAPIService<any>;
element: ElementRef;
cdr: ChangeDetectorRef;
private resolver;
/**
* Returns whether the row is expanded.
* ```typescript
* const RowExpanded = this.grid1.rowList.first.expanded;
* ```
*/
expanded: boolean;
layout: IgxRowIslandComponent;
/**
* @hidden
*/
readonly parentHasScroll: boolean;
/**
* @hidden
*/
parentGridID: string;
/**
* The data passed to the row component.
*
* ```typescript
* // get the row data for the first selected row
* let selectedRowData = this.grid.selectedRows[0].rowData;
* ```
*/
rowData: any;
/**
* The index of the row.
*
* ```typescript
* // get the index of the second selected row
* let selectedRowIndex = this.grid.selectedRows[1].index;
* ```
*/
index: number;
private hGrid;
/**
* @hidden
*/
tabindex: number;
/**
* @hidden
*/
role: string;
/**
* Get a reference to the grid that contains the selected row.
*
* ```typescript
* handleRowSelection(event) {
* // the grid on which the onRowSelectionChange event was triggered
* const grid = event.row.grid;
* }
* ```
*
* ```html
* <igx-grid
* [data]="data"
* (onRowSelectionChange)="handleRowSelection($event)">
* </igx-grid>
* ```
*/
readonly parentGrid: any;
readonly level: number;
/**
* The native DOM element representing the row. Could be null in certain environments.
*
* ```typescript
* // get the nativeElement of the second selected row
* let selectedRowNativeElement = this.grid.selectedRows[1].nativeElement;
* ```
*/
readonly nativeElement: any;
constructor(gridAPI: GridBaseAPIService<any>, element: ElementRef, resolver: ComponentFactoryResolver, cdr: ChangeDetectorRef);
/**
* @hidden
*/
ngOnInit(): void;
/**
* @hidden
*/
ngAfterViewInit(): void;
private setupEventEmitters;
private _handleLayoutChanges;
}