ionic-framework
Version:
The ionic-framework package comes with both Javascript and Sass frontend dependencies, located in the root of the package, and a Node API, located in `tooling/`.
22 lines (21 loc) • 599 B
TypeScript
import { ElementRef } from 'angular2/core';
/**
* Base class for all Ionic components. Exposes some common functionality
* that all Ionic components need, such as accessing underlying native elements and
* sending/receiving app-level events.
*/
export declare class Ion {
protected elementRef: ElementRef;
private _id;
constructor(elementRef: ElementRef);
getElementRef(): ElementRef;
getNativeElement(): any;
getDimensions(): {
width: number;
height: number;
left: number;
top: number;
};
width(): number;
height(): number;
}