import {Directive, View, Host, Optional, ElementRef, Attribute, Query, QueryList, NgZone} from 'angular2/angular2'; import {IonicConfig} from '../../config/config'; import {IonicForm} from '../form/form'; import {Label} from './label'; import {IonicApp} from '../app/app'; import {Content} from '../content/content'; import * as dom from '../../util/dom'; import {IonicPlatform} from '../../platform/platform'; /** * TODO */ @Directive({ selector: 'ion-input', host: { '(focus)': 'receivedFocus(true)', '(blur)': 'receivedFocus(false)', '(touchstart)': 'pointerStart($event)', '(touchend)': 'pointerEnd($event)', '(mouseup)': 'pointerEnd($event)', '[class.has-focus]': 'hasFocus', '[class.has-value]': 'hasValue', 'class': 'item' } }) export class TextInput { /** * TODO * @param {ElementRef} elementRef TODO * @param {IonicConfig} config TODO * @param {IonicApp} app TODO * @param {NgZone} ngZone TODO * @param {Content=} scrollView The parent scroll view. * @param {QueryList} inputQry TODO * @param {QueryList