Debian packaging for ‘jquery-textcomplete’.

Ben Finney c39e81f3dc Merge tag 'upstream/1.7.1' преди 8 години
doc 2359186ab5 Import source for “1.7.1” from upstream tarball. преди 8 години
src 2359186ab5 Import source for “1.7.1” from upstream tarball. преди 8 години
.gitattributes 2359186ab5 Import source for “1.7.1” from upstream tarball. преди 8 години
.gitignore 2359186ab5 Import source for “1.7.1” from upstream tarball. преди 8 години
CHANGELOG.md 2359186ab5 Import source for “1.7.1” from upstream tarball. преди 8 години
Gruntfile.js 2359186ab5 Import source for “1.7.1” from upstream tarball. преди 8 години
LICENSE 2359186ab5 Import source for “1.7.1” from upstream tarball. преди 8 години
README.md 2359186ab5 Import source for “1.7.1” from upstream tarball. преди 8 години
bower.json 2359186ab5 Import source for “1.7.1” from upstream tarball. преди 8 години
package.json 2359186ab5 Import source for “1.7.1” from upstream tarball. преди 8 години

README.md

Autocomplete for Textarea

npm version Bower version Analytics

Introduces autocompleting power to textareas, like a GitHub comment form has.

Demo

Demo.

Synopsis

$('textarea').textcomplete([{
    match: /(^|\b)(\w{2,})$/,
    search: function (term, callback) {
        var words = ['google', 'facebook', 'github', 'microsoft', 'yahoo'];
        callback($.map(words, function (word) {
            return word.indexOf(term) === 0 ? word : null;
        }));
    },
    replace: function (word) {
        return word + ' ';
    }
}]);

Dependencies

  • jQuery (>= 1.7.0) OR Zepto (>= 1.0)

Documents

See doc dir.

License

Licensed under the MIT License.

Contributors

Patches and code improvements were contributed by:

https://github.com/yuku-t/jquery-textcomplete/graphs/contributors