Nativescript Core(Javascript) TextField change Event

nativescriptcore

#1

Iam new to Nativescript and I am Developing Nativescript Core App with Javascript. Now I want to implement the textchange Event for a TextField. Is it really possible? If yes, please provide some snippet.


#2

Yes, It’s possible. Any property of a component can be monitored with change events, saying that text property can be monitored using textChange event.

I suspect you might be adding the textChange listener in your XML which I suspect won’t work. Add loaded even to your TextField, add textChange event from there in JavaScript. As of now it’s a limitation that NativeScript Core can’t monitor property change events from XML.


textInput textChanged event
#3

The task completed successfully. Thank you so much…