1 | import { ElementRef, Renderer } from '@angular/core';
|
2 | import { Config } from '../config/config';
|
3 | /**
|
4 | * Base class for all Ionic components. Exposes some common functionality
|
5 | * that all Ionic components need, such as accessing underlying native elements and
|
6 | * sending/receiving app-level events.
|
7 | */
|
8 | /** @hidden */
|
9 | export declare class Ion {
|
10 | /** @hidden */
|
11 | _config: Config;
|
12 | /** @hidden */
|
13 | _elementRef: ElementRef;
|
14 | /** @hidden */
|
15 | _renderer: Renderer;
|
16 | /** @hidden */
|
17 | _color: string;
|
18 | /** @hidden */
|
19 | _mode: string;
|
20 | /** @hidden */
|
21 | _componentName: string;
|
22 | /**
|
23 | * @input {string} The color to use from your Sass `$colors` map.
|
24 | * Default options are: `"primary"`, `"secondary"`, `"danger"`, `"light"`, and `"dark"`.
|
25 | * For more information, see [Theming your App](/docs/theming/theming-your-app).
|
26 | */
|
27 | color: string;
|
28 | /**
|
29 | * @input {string} The mode determines which platform styles to use.
|
30 | * Possible values are: `"ios"`, `"md"`, or `"wp"`.
|
31 | * For more information, see [Platform Styles](/docs/theming/platform-specific-styles).
|
32 | */
|
33 | mode: string;
|
34 | constructor(config: Config, elementRef: ElementRef, renderer: Renderer, componentName?: string);
|
35 | /** @hidden */
|
36 | setElementClass(className: string, isAdd: boolean): void;
|
37 | /** @hidden */
|
38 | setElementAttribute(attributeName: string, attributeValue: any): void;
|
39 | /** @hidden */
|
40 | setElementStyle(property: string, value: string): void;
|
41 | /** @hidden */
|
42 | _setColor(newColor: string, componentName?: string): void;
|
43 | /** @hidden */
|
44 | _setMode(newMode: string): void;
|
45 | /** @hidden */
|
46 | _setComponentName(): void;
|
47 | /** @hidden */
|
48 | getElementRef(): ElementRef;
|
49 | /** @hidden */
|
50 | getNativeElement(): any;
|
51 | }
|