This repository was archived by the owner on Aug 7, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +19
-12
lines changed Expand file tree Collapse file tree 2 files changed +19
-12
lines changed Original file line number Diff line number Diff line change 1
1
import { addBooleanParameter } from "@oui-angular/common/component-utils" ;
2
2
3
3
export default class {
4
- constructor ( $attrs ) {
4
+ constructor ( $attrs , $element , $timeout ) {
5
5
"ngInject" ;
6
6
7
7
this . $attrs = $attrs ;
8
+ this . $element = $element ;
9
+ this . $timeout = $timeout ;
8
10
}
9
11
10
12
$onInit ( ) {
11
13
addBooleanParameter ( this , "loading" ) ;
12
14
}
15
+
16
+ $postLink ( ) {
17
+ this . $timeout ( ( ) =>
18
+ this . $element
19
+ . addClass ( "oui-tile" )
20
+ ) ;
21
+ }
13
22
}
Original file line number Diff line number Diff line change 1
- < div class ="oui-tile ">
2
- < h4 class ="oui-header_4 oui-tile__title " ng-bind ="::$ctrl.heading "> </ h4 >
3
- < p class ="oui-tile__legend " ng-if ="!!$ctrl.description " ng-bind ="::$ctrl.description "> </ p >
4
- < div class ="oui-tile__body "
5
- ng-if ="!$ctrl.loading "
6
- ng-transclude >
7
- </ div >
8
- < div class ="oui-tile__loader "
9
- ng-if ="$ctrl.loading ">
10
- < oui-spinner size ="m "> </ oui-spinner >
11
- </ div >
1
+ < h4 class ="oui-header_4 oui-tile__title " ng-bind ="::$ctrl.heading "> </ h4 >
2
+ < p class ="oui-tile__legend " ng-if ="!!$ctrl.description " ng-bind ="::$ctrl.description "> </ p >
3
+ < div class ="oui-tile__body "
4
+ ng-if ="!$ctrl.loading "
5
+ ng-transclude >
6
+ </ div >
7
+ < div class ="oui-tile__loader "
8
+ ng-if ="$ctrl.loading ">
9
+ < oui-spinner size ="m "> </ oui-spinner >
12
10
</ div >
You can’t perform that action at this time.
0 commit comments