action-sheet.d.ts 1.2KB

123456789101112131415161718192021222324252627282930313233343536
  1. import { ActionSheetButton, ActionSheetOptions } from './action-sheet-options';
  2. import { App } from '../app/app';
  3. import { Config } from '../../config/config';
  4. import { NavOptions } from '../../navigation/nav-util';
  5. import { ViewController } from '../../navigation/view-controller';
  6. /**
  7. * @hidden
  8. */
  9. export 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. }