tixif-ngx-busy
Version:
Angular 2 Busy: show busy/loading indicators on any promise, or on any Observable's subscription
32 lines (31 loc) • 791 B
TypeScript
/**
* @file Busy Config
* @author yumao<yuzhang.lille@gmail.com>
*/
import { Subscription } from 'rxjs/Subscription';
export declare class BusyConfig implements IBusyConfig {
template: string;
delay: number;
minDuration: number;
backdrop: boolean;
message: string;
wrapperClass: string;
constructor(config?: IBusyConfig);
}
export interface IBusyConfig {
template?: string;
delay?: number;
minDuration?: number;
backdrop?: boolean;
message?: string;
wrapperClass?: string;
busy?: Promise<any> | Subscription | Array<Promise<any> | Subscription>;
}
export declare const BUSY_CONFIG_DEFAULTS: {
template: string;
delay: number;
minDuration: number;
backdrop: boolean;
message: string;
wrapperClass: string;
};