📜  ag-grid 添加行 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:20.994000             🧑  作者: Mango

代码示例2
const selectedRow = this.gridApi.getFocusedCell()
const id = this.gridOptions.rowData[selectedRow.rowIndex].i

this.gridOptions.rowData.splice(selectedRow.rowIndex, 1)
this.gridApi.setRowData(this.gridOptions.rowData)