Angular 6 - Add new row in AG Grid

后端 未结 4 1743
面向向阳花
面向向阳花 2021-01-05 00:46

I want to add a new element in AG Grid. I have a following model:

export class PersonModel {
  cars: CarModel[];
}

The AG Grid has as

4条回答
  •  被撕碎了的回忆
    2021-01-05 01:33

    Make sure your rowData array is getting updated with the new object you added and if its getting updated and its just a question of updating the grid view, you can explicitly call the refresh API's of the grid. https://www.ag-grid.com/javascript-grid-api/#refresh

提交回复
热议问题