Relative Content

Tag Archive for javascripthtmlcssangularui-grid

How to change Angular UI Grid cell font color during cell edition

1.Background The following code snippet shows that it is possible to change the font color of a textarea element while it is being edited (font color changes from black to red if the word foo is typed). angular.module(‘app’, []).controller(‘ctrl’, function ($scope) { $scope.$watch(‘val’, function () { $scope.invalidTextArea = ($scope.val === ‘foo’); }); }); .red { […]