Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • feature/migrate-cordova-13
  • feat/improve-network-scan
  • feat/force-migration-check
  • develop
  • feature/encrypted_comment
  • feature/android_api_19
  • gitlab_migration_1
  • rml8
  • v1.7.14
  • v1.7.13
  • v1.7.12
  • v1.7.11
  • v1.7.10
  • v1.7.9
  • v1.7.8
  • v1.7.7
  • v1.7.6
  • v1.7.5
  • v1.7.4
  • v1.7.3
  • v1.7.2
  • v1.7.1
  • v1.7.0
  • v1.7.0-rc2
  • v1.7.0-rc1
  • v1.6.12
  • v1.6.11
  • v1.6.10
29 results

components.js

Blame
  • components.js 1.58 KiB
    angular.module('cesium')
    
      .component('csAvatar', {
        bindings: {
          avatar: '<',
          icon: '@'
        },
        template:
        '<i ng-if="!$ctrl.avatar" class="item-image icon {{$ctrl.icon}}"></i>' +
        '<i ng-if="$ctrl.avatar" class="item-image avatar" style="background-image: url({{::$ctrl.avatar.src}})"></i>'
      })
    
      .component('csBadgeCertification', {
        bindings: {
          requirements: '=',
          parameters: '<',
          csId: '@'
        },
        templateUrl: 'templates/common/badge_certification_count.html'
      })
    
      .component('csBadgeGivenCertification', {
        bindings: {
          identity: '=',
          parameters: '<',
          csId: '@'
        },
        templateUrl: 'templates/common/badge_given_certification_count.html'
      })
    
      .component('csSortIcon', {
        bindings: {
          asc: '=',
          sort: '=',
          toggle: '<'
        },
        template:
        '<i class="ion-chevron-up" ng-class="{gray: !$ctrl.asc || $ctrl.sort != $ctrl.toggle}" style="position: relative;left : 5px; top:-5px; font-size: 9px;"></i>' +
        '<i class="ion-chevron-down" ng-class="{gray : $ctrl.asc || $ctrl.sort != $ctrl.toggle}" style="position: relative; left: -2.6px; top: 3px; font-size: 9px;"></i>'
      })
    
      .component('csRemovableSelectionItem', {
        transclude: true,
        controller: function(){
          this.$onInit = function(){
            console.log("$onInit called: ", this);
          };
          this.remove = function(){
            console.log("remove called: ", this);
          };
        },
        template:
        '<div >' +
        '  <ng-transclude></ng-transclude>' +
        '  <i class="icon ion-close" ng-click="$ctrl.remove();"></i>' +
        '</div>'
      })
    
    ;