Skip to content

Commit 5627f8c

Browse files
authored
Merge pull request #2918 from IgniteUI/dpetev/cell-edit-event-migration
chore(migration): add cell edit event migration for #2897
2 parents e9843b4 + eb05dc8 commit 5627f8c

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "../../common/schema/binding.schema.json",
3+
"changes": [
4+
{
5+
"name": "onEditDone",
6+
"replaceWith": "onCellEdit",
7+
"owner": {
8+
"selector": "igx-grid",
9+
"type": "component"
10+
}
11+
}
12+
]
13+
}

projects/igniteui-angular/migrations/update-6_2/index.spec.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,15 @@ describe('Update 6.2.0', () => {
6767
<igx-icon fontSet="svg-icons" name="my-icon"></igx-icon>`);
6868
done();
6969
});
70+
71+
it('should rename igx-grid onEditDone event', done => {
72+
appTree.create(
73+
'/testSrc/appPrefix/component/test.component.html',
74+
`<igx-grid (onEditDone)="handler"></igx-grid> <not-igx-grid (onEditDone)="handler"></not-igx-grid>`
75+
);
76+
const tree = schematicRunner.runSchematic('migration-05', {}, appTree);
77+
expect(tree.readContent('/testSrc/appPrefix/component/test.component.html'))
78+
.toEqual(`<igx-grid (onCellEdit)="handler"></igx-grid> <not-igx-grid (onEditDone)="handler"></not-igx-grid>`);
79+
done();
80+
});
7081
});

0 commit comments

Comments
 (0)