UNPKG

1.48 kBTypeScriptView Raw
1import { ComponentInterface } from '../../stencil-public-runtime';
2import { 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 menu button icon (uses ion-icon).
9 */
10export declare class MenuButton implements ComponentInterface, ButtonInterface {
11 private inheritedAttributes;
12 el: HTMLIonSegmentElement;
13 visible: boolean;
14 /**
15 * The color to use from your application's color palette.
16 * Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
17 * For more information on colors, see [theming](/docs/theming/basics).
18 */
19 color?: Color;
20 /**
21 * If `true`, the user cannot interact with the menu button.
22 */
23 disabled: boolean;
24 /**
25 * Optional property that maps to a Menu's `menuId` prop. Can also be `start` or `end` for the menu side. This is used to find the correct menu to toggle
26 */
27 menu?: string;
28 /**
29 * Automatically hides the menu button when the corresponding menu is not active
30 */
31 autoHide: boolean;
32 /**
33 * The type of the button.
34 */
35 type: 'submit' | 'reset' | 'button';
36 componentWillLoad(): void;
37 componentDidLoad(): void;
38 visibilityChanged(): Promise<void>;
39 private onClick;
40 render(): any;
41}