feat(Input): added functionality for clear input option on ion-input

Implemented function to handle when the clearInput button is pressed on an ion-input element
This commit is contained in:
unknown
2016-04-14 09:03:00 -05:00
parent c594c43108
commit d8e2849be8
4 changed files with 43 additions and 0 deletions

View File

@ -105,6 +105,13 @@ export class TextInput extends InputBase {
inputFocused(event) {
this.focus.emit(event);
}
/**
* @private
*/
clearTextInput() {
this._value = '';
}
}