1 |
57555
|
k.triantaf
|
import {Component, Input} from "@angular/core";
|
2 |
|
|
|
3 |
|
|
@Component({
|
4 |
|
|
selector: 'loading',
|
5 |
|
|
template: `
|
6 |
57735
|
k.triantaf
|
<div class="uk-flex uk-flex-center uk-margin-small-top">
|
7 |
|
|
<div class="md-preloader" [ngClass]="(color)?('md-preloader-' + color):''">
|
8 |
57555
|
k.triantaf
|
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="48" width="48" viewBox="0 0 75 75">
|
9 |
|
|
<circle cx="37.5" cy="37.5" r="33.5" stroke-width="4"></circle>
|
10 |
|
|
</svg>
|
11 |
|
|
</div>
|
12 |
|
|
</div>`
|
13 |
|
|
})
|
14 |
|
|
export class LoadingComponent {
|
15 |
|
|
/**
|
16 |
|
|
* Possible values '': blue, 'success': green, 'warning': orange and 'danger': red
|
17 |
|
|
*/
|
18 |
57735
|
k.triantaf
|
@Input() color: 'success' | 'warning' | 'danger' = null;
|
19 |
57555
|
k.triantaf
|
|
20 |
|
|
constructor() {
|
21 |
|
|
}
|
22 |
|
|
}
|