@vaadin-component-factory/vcf-autosuggest
v1.1.6
Published
Web Component with a text input that provides a panel of suggested options.
Downloads
16
Readme
<vcf-autosuggest>
This is the npm version vcf-autosuggest developed using Polymer 3.
Live demo ↗ | API documentation ↗
Installation
Install vcf-autosuggest
:
npm i @vaadin-component-factory/vcf-autosuggest --save
Usage
Once installed, import it in your application:
import '@vaadin-component-factory/vcf-autosuggest';
Add <vcf-autosuggest>
to the page. In attribute options
you should declare options that will be offered for user to select. All change listener to the element in which you will update options
appribute.
<vcf-autosuggest id="demo1" label="Choose country" placeholder="Start typing a country name..." options="[[options]]">
</vcf-autosuggest>
Running demo
Fork the
vcf-autosuggest
repository and clone it locally.Make sure you have npm installed.
When in the
vcf-autosuggest
directory, runnpm install
to install dependencies.Run
npm start
to open the demo.
Contributing
To contribute to the component, please read the guideline first.
License
Apache License 2