mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-18 23:36:11 +01:00
theme spinner
This commit is contained in:
parent
00f6c0e6cb
commit
31c7843ab5
10 changed files with 58 additions and 13 deletions
|
|
@ -1,7 +1,8 @@
|
|||
import {Injectable} from '@angular/core'
|
||||
import {BgMetrics} from './bgMetrics';
|
||||
import {Subject} from 'rxjs/Subject';
|
||||
|
||||
import {BgMetrics} from './bgMetrics';
|
||||
|
||||
@Injectable()
|
||||
export class BaCardBlurHelper {
|
||||
private image:HTMLImageElement;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
export * from './theme.spinner'
|
||||
export * from './theme.constants'
|
||||
export * from './theme.configProvider'
|
||||
export * from './theme.config'
|
||||
|
|
|
|||
3
src/app/theme/initial.scss
Normal file
3
src/app/theme/initial.scss
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
@import 'sass/conf/conf';
|
||||
@import 'sass/preloader';
|
||||
@import 'sass/ionicons';
|
||||
|
|
@ -5,7 +5,6 @@
|
|||
@import "sass/buttons";
|
||||
@import "sass/icons";
|
||||
@import "sass/layout";
|
||||
@import "sass/preloader";
|
||||
@import "sass/socicon";
|
||||
@import "sass/table";
|
||||
@import "sass/form";
|
||||
|
|
|
|||
22
src/app/theme/theme.spinner.ts
Normal file
22
src/app/theme/theme.spinner.ts
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import {Injectable} from '@angular/core';
|
||||
|
||||
@Injectable()
|
||||
export class BaThemeSpinner {
|
||||
|
||||
private _selector:string = 'preloader';
|
||||
private _element:HTMLElement;
|
||||
|
||||
constructor() {
|
||||
this._element = document.getElementById(this._selector);
|
||||
}
|
||||
|
||||
public show():void {
|
||||
this._element.style['display'] = 'block';
|
||||
}
|
||||
|
||||
public hide(delay:number = 0):void {
|
||||
setTimeout(() => {
|
||||
this._element.style['display'] = 'none';
|
||||
}, delay);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue