UNPKG

1.18 kBTypeScriptView Raw
1import { ActionSheetButton, ActionSheetOptions } from './action-sheet-options';
2import { App } from '../app/app';
3import { Config } from '../../config/config';
4import { NavOptions } from '../../navigation/nav-util';
5import { ViewController } from '../../navigation/view-controller';
6/**
7 * @hidden
8 */
9export declare class ActionSheet extends ViewController {
10 private _app;
11 constructor(app: App, opts: ActionSheetOptions, config: Config);
12 /**
13 * @hidden
14 */
15 getTransitionName(direction: string): string;
16 /**
17 * @param {string} title Action sheet title
18 */
19 setTitle(title: string): ActionSheet;
20 /**
21 * @param {string} subTitle Action sheet subtitle
22 */
23 setSubTitle(subTitle: string): ActionSheet;
24 /**
25 * @param {object} button Action sheet button
26 */
27 addButton(button: ActionSheetButton | string): ActionSheet;
28 /**
29 * Present the action sheet instance.
30 *
31 * @param {NavOptions} [navOptions={}] Nav options to go with this transition.
32 * @returns {Promise} Returns a promise which is resolved when the transition has completed.
33 */
34 present(navOptions?: NavOptions): Promise<any>;
35}