1angular.module('uiGridEmptyMsg',[]).directive('showEmptyMsg', function ($compile, $timeout) { 2 return { 3 restrict: 'A', 4 link: function (scope, element, attrs) { 5 var msg = 'Nothing to display'; 6 if(scope.noDataFoundMessage) { 7 msg = scope.noDataFoundMessage; 8 } else if (attrs.showEmptyMsg) { 9 msg = attrs.showEmptyMsg; 10 } 11 var template = "<p ng-hide='" + attrs.hideCondition +"'>" + msg + "</p>"; 12 var tmpl = angular.element(template); 13 $compile(tmpl)(scope); 14 $timeout(function () { 15 element.find('.ui-grid-viewport:last').append(tmpl); 16 }, 0); 17 18 } 19 }; 20})
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.