I am doing a batch update on cell data by looping through selected items/rows. I want my rows to have a class added after my batch update to show that they have been modified. Is this possible? I've been trying to manually set edit mode.
Asked
Active
Viewed 33 times
0
-
1Check out [ask] and [mcve] and then come back to edit your question appropriately. – Lex Apr 04 '16 at 17:22
-
Agree with @Lex. To answer your question, why dont you try to add a variable which tells whether the row was updated or not and then set your ng-class to use that variables to show the row as selected. – Nilesh Apr 04 '16 at 20:00
-
Nilesh's solution worked. – steve Apr 05 '16 at 18:57
1 Answers
0
I set a variable State to a string "changed"
var selecteditems = $scope.subapi[key].selection.getSelectedRows();
angular.forEach(selecteditems, function (value, key){
selecteditems[key2].State = "changed";
});
in the row template i use ng-class:
ng-class="{ 'row-text-red': row.entity.State=='changed', }"

steve
- 21
- 2