Autocomplete text field using svelte3
npm install svelte3-autocompleteThis is a svelte3 library to create autocomplete text fields with both static and async support
To try this library, please run below commands in sequence.
``bash`
npm install
npm run build:dev
Above commands build the app, to run the app, please install http-server from npm.
`bash`
http-server dev/public/.
Then open the app at localhost:8080
Install the dependencies...
`html`
`html`
items="{names}"
{isAsync}
bind:this="{autoComplete}"
on:input="{loadApiData}"
/>
In async case, you need to call this method to send data to the component.
`javascript``
autoComplete.update(data.map(d => d.name));