nativescript-autocomplete
nativescript-autocomplete copied to clipboard
How to dynamically change the list?
@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
Regards
you can try passing your to autocompleteInstance.itemsUpdate()
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 updates coming soon
@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