ionic-angular
Version:
A powerful framework for building mobile and progressive web apps with JavaScript and Angular
48 lines (47 loc) • 1.62 kB
TypeScript
import { App } from '../app/app';
import { Config } from '../../config/config';
import { LoadingOptions } from './loading-options';
import { NavOptions } from '../../navigation/nav-util';
import { ViewController } from '../../navigation/view-controller';
/**
* @hidden
*/
export declare class Loading extends ViewController {
private _app;
constructor(app: App, opts: LoadingOptions, config: Config);
/**
* @hidden
*/
getTransitionName(direction: string): string;
/**
* @param {string} content sets the html content for the loading indicator.
*/
setContent(content: string): Loading;
/**
* @param {string} spinner sets the name of the SVG spinner for the loading indicator.
*/
setSpinner(spinner: string): Loading;
/**
* @param {string} cssClass sets additional classes for custom styles, separated by spaces.
*/
setCssClass(cssClass: string): Loading;
/**
* @param {boolean} showBackdrop sets whether to show the backdrop.
*/
setShowBackdrop(showBackdrop: boolean): Loading;
/**
* @param {number} dur how many milliseconds to wait before hiding the indicator.
*/
setDuration(dur: number): Loading;
/**
* Present the loading instance.
*
* @param {NavOptions} [navOptions={}] Nav options to go with this transition.
* @returns {Promise} Returns a promise which is resolved when the transition has completed.
*/
present(navOptions?: NavOptions): Promise<any>;
/**
* Dismiss all loading components which have been presented.
*/
dismissAll(): void;
}