text: (function () {
    'use strict';
  
    angular.module('BlurAdmin.theme')
        .directive('csSelect', csSelect);
  
        function csSelect(){
        return {
          require: '^stTable',
          template: '<input type="checkbox"/>',
          scope: {
              row: '=csSelect'
          },
          link: function (scope, element, attr, ctrl) {
  
              element.bind('change', function (evt) {
                  scope.$apply(function () {
                      ctrl.select(scope.row, 'multiple');
                  });
              });
  
              scope.$watch('row.isSelected', function (newValue, oldValue) {
                  if (newValue === true) {
                      element.parent().addClass('st-selected');
                      element.find('input').attr('checked', true);
                  } else {
                      element.parent().removeClass('st-selected');
                       element.find('input').attr('checked', false);
                  }
              });
          }
      };	
        }
  
  })();