Skip to content

Commit 7c7cacd

Browse files
committed
Edit Grid: Implementing emitting add row event
1 parent 0f48b1e commit 7c7cacd

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [Unreleased]
8+
### Added
9+
- Emitting Edit Grid event for row addition
10+
711
## 3.1.3
812
### Fixed
913
- Problem with the PDFBuilder component where it would remove listeners for the drag-and-drop components.

src/components/editgrid/EditGrid.js

+5
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,11 @@ export default class EditGridComponent extends NestedComponent {
281281
isOpen: true,
282282
data: {}
283283
});
284+
const rowInfo = {
285+
component: this.component,
286+
row: this.editRows[this.editRows.length - 1]
287+
};
288+
this.emit('editGridAddRow', rowInfo);
284289
this.buildTable();
285290
}
286291

0 commit comments

Comments
 (0)