comparison src/app/progress-spinner/progress-spinner.component.ts @ 115:c02c76b94148

Basic spinner for indicating loading of files and features - the flag used for tracking state is mostly redundant (it is usually !canExtract... apart from initial state)... but going with this for now.
author Lucas Thompson <dev@lucas.im>
date Tue, 14 Mar 2017 16:11:40 +0000
parents
children 7224d9f990cf
comparison
equal deleted inserted replaced
114:ba1de1f4015f 115:c02c76b94148
1 /**
2 * Created by lucast on 14/03/2017.
3 */
4
5
6 import {Component, Input} from "@angular/core";
7 @Component({
8 selector: 'ugly-progress-spinner',
9 template: `
10 <div class="container" [hidden]="!isVisible">
11 <md-spinner
12 class="spinner"
13 color="primary"
14 ></md-spinner>
15 </div>
16 `,
17 styles: [`
18 .container {
19 height: 40px;
20 width: 40px;
21 position: absolute;
22 top: calc(100% - 40px);
23 left: calc(100% - 40px);
24 }
25
26 .spinner {
27 width: 100%;
28 height: 100%;
29 }
30 `]
31 })
32 export class ProgressSpinnerComponent {
33 @Input() isVisible: boolean = true;
34 }