jquery-textcomplete

DEPRECATED: use yuku/textcomplete

  • Owner: yuku/textcomplete
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

jquery-textcomplete is no longer maintained. Please use yuku-t/textcomplete instead.

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

Main metrics

Overview
Name With Owneryuku/textcomplete
Primary LanguageTypeScript
Program languageJavaScript (Language Count: 2)
Platform
License:MIT License
所有者活动
Created At2013-08-24 06:22:06
Pushed At2023-12-11 03:25:12
Last Commit At
Release Count84
Last Release Namev0.1.13 (Posted on )
First Release Namejquery-v0.0.2 (Posted on )
用户参与
Stargazers Count1.7k
Watchers Count61
Fork Count299
Commits Count504
Has Issues Enabled
Issues Count226
Issue Open Count13
Pull Requests Count92
Pull Requests Open Count0
Pull Requests Close Count43
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private