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.
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.
core:1.4.2/Events core:1.4.2/Options more:1.4.0.1/Element.Forms
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