node-input-suggestion
v1.0.0
Published
Show suggestions when you input.
Downloads
2
Readme
input-suggestion
Show suggestions when you input.
Install
Using npm:
$ npm install node-input-suggestion
Using bower:
$ bower install input-suggestion
Usage
<textarea></textarea>
<script>
var is = new InputSuggest('textarea');
is.setSuggestions(['Apple', 'Apple Watch', 'Mac', 'iPad', 'iPhone', 'iPod', 'iPod Touch']);
</script>
Customize popup
You can style popup with following HTML structure.
<ul class="suggestion is-shown">
<li class="suggestion__item is-selected">Item1 is selected</li>
<li class="suggestion__item">Item2</li>
<li class="suggestion__item">Item3</li>
</ul>
License
MIT: http://1000ch.mit-license.org