Skip to content

Commit c80e8af

Browse files
Merge pull request #9227 from IgniteUI/grid-endEdit-facade
fix(GRID): expose end edit facade Closes #8330
2 parents 5c45802 + cff09cd commit c80e8af

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5955,6 +5955,22 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
59555955
}
59565956
}
59575957

5958+
/**
5959+
* Finishes the row transactions on the current row.
5960+
*
5961+
* @remarks
5962+
* If `commit === true`, passes them from the pending state to the data (or transaction service)
5963+
* @example
5964+
* ```html
5965+
* <button igxButton (click)="grid.endEdit(true)">Commit Row</button>
5966+
* ```
5967+
* @param commit
5968+
*/
5969+
// TODO: Facade for crud service refactoring. To be removed
5970+
public endEdit(commit = true, event?: Event) {
5971+
this.crudService.endEdit(commit, event);
5972+
}
5973+
59585974
protected writeToData(rowIndex: number, value: any) {
59595975
mergeObjects(this.gridAPI.get_all_data()[rowIndex], value);
59605976
}

0 commit comments

Comments
 (0)