Newer
Older
ubFramework / Portal / docroot / js / plugins / nggrid / src / directives / ng-header-cell.js
@Christopher W. Olsen Christopher W. Olsen on 10 Dec 2017 393 bytes Cleaning Up Making It A Sub Module
ngGridDirectives.directive('ngHeaderCell', ['$compile', function($compile) {
    var ngHeaderCell = {
        scope: false,
        compile: function() {
            return {
                pre: function($scope, iElement) {
                    iElement.append($compile($scope.col.headerCellTemplate)($scope));
                }
            };
        }
    };
    return ngHeaderCell;
}]);