UNPKG

@evan.network/ui-angular-core

Version:

The angular-core operates as an global and central library for the evan.network Angular 5 frontend development. Using this project you will be able to to the following things:

52 lines (51 loc) 1.7 kB
import { OnInit, OnDestroy, ChangeDetectorRef, DomSanitizer } from 'angular-libs'; import { EvanRoutingService } from '../../services/ui/routing'; /**************************************************************************************************/ /** * Evan network loading img wrapper. * * @class Component EvanLoadingComponent */ export declare class EvanLoadingComponent implements OnInit, OnDestroy { private routing; private ref; private _DomSanitizer; /***************** inputs & outpus *****************/ /** * milliseconds to delay the loading symbol display (normally the DApp will * load within 500ms and their we need no loading icon) */ delayLoading: number; /** * text that should be displayed during loading */ loadingText: number; /***************** variables *****************/ /** * show / hide the component */ private show; /** * handle dapp crashes, so the dapp can navigate back, when dapp is not loading */ private showBackButtons; /** * save setTimeout reference to clear it after component destroyed */ private waitForBackButton; /** * check if we are on dashboard, hide loaded to long go to dashboard button */ private isDashboardDApp; /** * Shows a custom loading symbol from localStorage */ private customLoading; /***************** initialization *****************/ constructor(routing: EvanRoutingService, ref: ChangeDetectorRef, _DomSanitizer: DomSanitizer); /** * show the loading symbol directly or after delayLoading ms */ ngOnInit(): void; ngOnDestroy(): void; }