Nativescript Core(Javascript) TextField change Event



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.


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

The task completed successfully. Thank you so much…