IT/AG Grid
[AG Grid] AG Grid Row 추가 및 삭제
AG Grid에서 Row를 추가하고 삭제하는 예제에 대해서 이번 글을 시작한다. AG Grid Row 추가 AG Grid 내부에서 Row를 신규로 추가하는 방법이다. 이 방법은 updateRowData 함수를 사용하여 Row를 추가할 수 있다. const GRID = { addRow: function () { // addRow 시 빈줄 추가 (2023-01-16, ANDUM) let _this = this; const newRow = {}; _this.gridOptions.api.updateRowData({add:[newRow]}); } } 위와 같이, newRow를 생성하여 gridOptions.api.updateRowData({add:[newRow]}) 로 Row를 추가할 수 있다. 결과 위와 같이,..
2023. 1. 17.
최근댓글