textInput textChanged event


#1

there is no textChanged event or onChange or something like this for textField?


#2

#3
const TField = require("tns-core-modules/ui/text-field");


//load event
viewModel.addressFieldonLoad=(args)=>{
    console.log("addressField loaded");
    args.object.addEventListener(TField.TextField.textChangeEvent, textChanged, this);
}


let textChanged=()=>{
    console.log("text changed");
}

what i’m I doing wrong ? its not working.


#4

I don’t think we have a textChangeEvent constant exported, it’s a property change event and none of the property change events has named exports. Try using “textChange” instead.


#5

I tried it too, but not working


#6

If you can prepare a playground, I may take a look.