<typeahead-country>
A Polymer element for autocompleting country names
Maintained by Addy Osmani.
Demo
Installation
Using Bower, run:
bower install typeahead-country
Usage
-
Import Web Components' polyfill:
<script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.1.4/platform.js"></script>
-
Import Custom Element:
<link rel="import" href="src/typeahead-country.html">
-
Start using it!
<typeahead-country><typeahead-country>
Setup
In order to run it locally you'll need a basic server setup.
-
Install NodeJS.
-
Install GruntJS:
$ [sudo] npm install -g grunt-cli
-
Install local dependencies:
$ npm install
-
Run a local server and open
http://localhost:8000
.$ grunt connect
Options
Attribute | Options | Default | Description |
---|---|---|---|
preview |
boolean | false |
Display a preview of the country options available |
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D