Search code examples
angularnativescriptangular2-nativescriptnativescript-telerik-ui

Get TextField text property after keyboard done in nativescript


I have a TextField and want to listen to the event when the user finished typing and wants to go on. I neither want to call a function each time a user presses any key nor I want to add a submit button. The keyboard offers a 'done' button, so why don't use this. The only question which follows is how to listen to that specific event.


Solution

  • returnPress should do what you want:

    <TextField (returnPress)="returnPress()"