InlineSuggest 1.0

Add auto-suggest functionality to any input or textarea.

Suggestions are made inline as selected text which can be accepted by hitting tab or enter, or typed over if not desired. If multiple matches apply, they can be scrolled through with the up and down arrow keys.



Details

Author
John Larson
Current version
1.0
GitHub
jplarson/InlineSuggest
Downloads
854
Category
Interface
Tags
Report
GitHub Issues

Releases


Dependencies

  • core:1.4.2/Events/core: 1.4.2
  • core:1.4.2/Options/core: 1.4.2
  • more:1.4.0.1/Element.Forms/more: 1.4.0.1

How to use

An input can be made to support inline suggesting by passing it (or its ID) to the InlineSuggest constructor:

<textarea id="theTextarea"></textarea>

#JS
var suggest = new TableSorter('theTextarea', ['first suggest value', 'second suggest value', ...]);

By default, inline suggestions are made only if a prefix of 3 or more characters matches a suggest value. This can be overriden by the minLengthMatch option:

var suggest = new TableSorter('dataTable', { minLengthMatch: 2 });  // suggestions will be made with only two matching characters.

Dependancies

core:1.4.2/Events
core:1.4.2/Options
more:1.4.0.1/Element.Forms

Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus