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