File tree Expand file tree Collapse file tree
client/app/modules/core/directives Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ var app = angular . module ( 'com.module.core' ) ;
4+
5+ app . directive ( 'rdWidgetBody' , function ( ) {
6+ return {
7+ requires : '^rdWidget' ,
8+ scope : {
9+ loading : '@?' ,
10+ classes : '@?'
11+ } ,
12+ transclude : true ,
13+ template : '<div class="widget-body" ng-class="classes"><rd-loading ng-show="loading"></rd-loading><div ng-hide="loading" class="widget-content" ng-transclude></div></div>' ,
14+ restrict : 'E'
15+ } ;
16+ } ) ;
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ var app = angular . module ( 'com.module.core' ) ;
4+
5+ app . directive ( 'rdWidgetFooter' , function ( ) {
6+ return {
7+ requires : '^rdWidget' ,
8+ transclude : true ,
9+ template : '<div class="widget-footer" ng-transclude></div>' ,
10+ restrict : 'E'
11+ } ;
12+ } ) ;
13+
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ var app = angular . module ( 'com.module.core' ) ;
4+
5+ app . directive ( 'rdWidgetHeader' , function ( ) {
6+ return {
7+ requires : '^rdWidget' ,
8+ scope : {
9+ title : '@' ,
10+ icon : '@'
11+ } ,
12+ transclude : true ,
13+ template : '<div class="widget-header"><i class="fa" ng-class="icon"></i> {{title}} <div class="pull-right" ng-transclude></div></div>' ,
14+ restrict : 'E'
15+ } ;
16+ } ) ;
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ var app = angular . module ( 'com.module.core' ) ;
4+
5+ app . directive ( 'rdWidget' , function ( ) {
6+ return {
7+ transclude : true ,
8+ template : '<div class="widget" ng-transclude></div>' ,
9+ restrict : 'EA'
10+ } ;
11+ } ) ;
You can’t perform that action at this time.
0 commit comments