openaire-library/utils/loading/loading.component.ts

22 lines
679 B
TypeScript
Raw Normal View History

import {Component, Input} from "@angular/core";
@Component({
selector: 'loading',
template: `
<div class="uk-flex uk-flex-center uk-margin-small-top">
<span class="portal-color uk-icon uk-spinner">
<svg width="60" height="60" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg" data-svg="spinner"><circle
fill="none" stroke="#000" cx="15" cy="15" r="14" style="stroke-width: 2px;"></circle></svg>
</span>
</div>`
})
export class LoadingComponent {
/**
* Possible values '': blue, 'success': green, 'warning': orange and 'danger': red
*/
@Input() color: 'success' | 'warning' | 'danger' = null;
constructor() {
}
}