mirror of https://github.com/portainer/portainer
16 lines
438 B
JavaScript
16 lines
438 B
JavaScript
|
angular
|
||
|
.module('uifordocker')
|
||
|
.directive('rdWidgetBody', function rdWidgetBody() {
|
||
|
var directive = {
|
||
|
requires: '^rdWidget',
|
||
|
scope: {
|
||
|
loading: '@?',
|
||
|
classes: '@?'
|
||
|
},
|
||
|
transclude: true,
|
||
|
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>',
|
||
|
restrict: 'E'
|
||
|
};
|
||
|
return directive;
|
||
|
});
|