123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- 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;
- }
|