UNPKG

1.67 kBTypeScriptView Raw
1import { ComponentInterface } from '../../stencil-public-runtime';
2import { AnimationBuilder, Color } from '../../interface';
3import { ButtonInterface } from '../../utils/element-interface';
4/**
5 * @virtualProp {"ios" | "md"} mode - The mode determines which platform styles to use.
6 *
7 * @part native - The native HTML button element that wraps all child elements.
8 * @part icon - The back button icon (uses ion-icon).
9 * @part text - The back button text.
10 */
11export declare class BackButton implements ComponentInterface, ButtonInterface {
12 el: HTMLElement;
13 /**
14 * The color to use from your application's color palette.
15 * Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
16 * For more information on colors, see [theming](/docs/theming/basics).
17 */
18 color?: Color;
19 /**
20 * The url to navigate back to by default when there is no history.
21 */
22 defaultHref?: string;
23 /**
24 * If `true`, the user cannot interact with the button.
25 */
26 disabled: boolean;
27 /**
28 * The icon name to use for the back button.
29 */
30 icon?: string | null;
31 /**
32 * The text to display in the back button.
33 */
34 text?: string | null;
35 /**
36 * The type of the button.
37 */
38 type: 'submit' | 'reset' | 'button';
39 /**
40 * When using a router, it specifies the transition animation when navigating to
41 * another page.
42 */
43 routerAnimation: AnimationBuilder | undefined;
44 componentWillLoad(): void;
45 get backButtonIcon(): any;
46 get backButtonText(): any;
47 get hasIconOnly(): any;
48 get rippleType(): "bounded" | "unbounded";
49 private onClick;
50 render(): any;
51}