nativescript-autocomplete icon indicating copy to clipboard operation
nativescript-autocomplete copied to clipboard

How to dynamically change the list?

Open ryc16 opened this issue 8 years ago • 4 comments

@triniwiz, is it possible to change the list while entering the text? My case is the list will be generated based on user enter the text. I tried to add item into the list

list.push(item);

but doesn't work. I even use ObservableArray for the list but got same result where list not updated. How can we achieve this?

Regards

ryc16 avatar Oct 17 '16 18:10 ryc16

you can try passing your to autocompleteInstance.itemsUpdate()

triniwiz avatar Oct 17 '16 20:10 triniwiz

Can you even get text dynamically?

I cannot seem to be able to do that. Really it is not worth much without being able to get the text as it is entered or dynamically update the list based on the entered text.

Is that planned as future enhancements?

blaur avatar Nov 04 '16 04:11 blaur

@blaur updates coming soon

triniwiz avatar Nov 04 '16 13:11 triniwiz

@triniwiz, do you have any updates on this? I was going to integrate with this plugin https://www.npmjs.com/package/nativescript-google-places but do not see a way to update the list automatically.

I will try the suggestion above and let you know how it goes, but wanted to ask.

Thank You

randy-johnson avatar Apr 02 '17 16:04 randy-johnson