Skip to content

Commit fa9066b

Browse files
committed
fix(Edit): Allow COL_FIELD in editable templates
1 parent 0a10fe1 commit fa9066b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/features/edit/js/gridEdit.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,9 @@
668668
//get original value from the cell
669669
origCellValue = cellModel($scope);
670670

671-
html = $scope.col.editableCellTemplate;
671+
html = $scope.col.editableCellTemplate
672+
.replace(uiGridConstants.COL_FIELD, 'grid.getCellValue(row, col)');
673+
672674
if ($scope.col.colDef.editModelField) {
673675
html = html.replace(uiGridConstants.MODEL_COL_FIELD, gridUtil.preEval('row.entity.' + $scope.col.colDef.editModelField));
674676
}

0 commit comments

Comments
 (0)