mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
29 lines
684 B
TypeScript
29 lines
684 B
TypeScript
import {Parent, Ancestor, Optional, ElementRef, Attribute} from 'angular2/angular2';
|
|
|
|
import {IonInput} from './form';
|
|
import {IonicApp} from '../app/app';
|
|
import {Content} from '../content/content';
|
|
|
|
|
|
export class TapInput extends IonInput {
|
|
constructor(
|
|
@Optional() @Parent() container: Input,
|
|
@Optional() @Ancestor() scrollView: Content,
|
|
@Attribute('type') type: string,
|
|
elementRef: ElementRef,
|
|
app: IonicApp
|
|
) {
|
|
super(elementRef, app, scrollView);
|
|
|
|
if (container) {
|
|
container.registerInput(this);
|
|
this.container = container;
|
|
}
|
|
|
|
this.type = type;
|
|
this.elementRef = elementRef;
|
|
this.tabIndex = this.tabIndex || '';
|
|
}
|
|
|
|
}
|