input-suggest
Show suggestions when you input.
Last updated 5 years ago by 1000ch .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install input-suggest 
SYNC missed versions from official npm registry.

input-suggest

NPM version Dependency Status devDependency Status

Show suggestions when you input.

Install

Using npm:

$ npm install input-suggest

Using bower:

$ bower install input-suggest

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

Current Tags

  • 1.3.6                                ...           latest (5 years ago)

11 Versions

  • 1.3.6                                ...           5 years ago
  • 1.3.5                                ...           5 years ago
  • 1.3.4                                ...           5 years ago
  • 1.3.3                                ...           5 years ago
  • 1.3.2                                ...           6 years ago
  • 1.3.1                                ...           6 years ago
  • 1.3.0                                ...           6 years ago
  • 1.2.0                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (18)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |