Readonly
gridAPI行のインデックスです。
// 2 番目に選択された項目のインデックスを取得します。
let selectedRowIndex = this.grid.selectedRows[1].index;
行コンポーネントに渡されるデータです。
// 最初に選択された行のデータを取得します。
let selectedRowData = this.grid.selectedRows[0].data;
行を表すネイティブ DOM 要素です。特定の環境で null 値か可能です。
// get the nativeElement of the second selected row
let selectedRowNativeElement = this.grid.selectedRows[1].nativeElement;
選択した行を含むグリッドへの参照を取得します。
handleRowSelection(event) {
// the grid on which the rowSelected event was triggered
const grid = event.row.grid;
}
<igx-grid
[data]="data"
(rowSelected)="handleRowSelection($event)">
</igx-grid>
行が展開されるかどうかを返します。