Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function() {
- "use strict";
- angular.module('akamai.components.tableRowHighlight', [])
- .directive("tableRowHighlight", tableRowHighlight);
- function tableRowHighlight() {
- return {
- restrict: "A",
- scope: {
- tableRowHighlight: '='
- },
- link: function(scope, element, attrs) {
- scope.$watch('tableRowHighlight', function(value) {
- if(scope.tableRowHighlight===true){
- element = $('table').last().children('tbody').find("tr")[0];
- element.css("background-color", "red");
- setTimeout(function() {
- element.css("background-color", "aqua").effect("highlight", {}, 3000);
- }, 2000);
- }
- });
- }
- };
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement