triniwiz / nativescript-autocomplete

Other
18 stars 7 forks source link

How to dynamically change the list? #5

Open ryc16 opened 7 years ago

ryc16 commented 7 years ago

@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

triniwiz commented 7 years ago

you can try passing your to autocompleteInstance.itemsUpdate()

blaur commented 7 years ago

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?

triniwiz commented 7 years ago

@blaur updates coming soon

randy-johnson commented 7 years ago

@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