|
|
пре 9 година | |
|---|---|---|
| .. | ||
| dist | пре 9 година | |
| doc | пре 9 година | |
| src | пре 9 година | |
| .gitattributes | пре 9 година | |
| .meteor-portable | пре 9 година | |
| .npmignore | пре 9 година | |
| CHANGELOG.md | пре 9 година | |
| Gruntfile.js | пре 9 година | |
| LICENSE | пре 9 година | |
| README.md | пре 9 година | |
| bower.json | пре 9 година | |
| package.json | пре 9 година | |
Introduces autocompleting power to textareas, like a GitHub comment form has.
Demo.
$('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 + ' ';
}
}]);
See doc dir.
Licensed under the MIT License.
Patches and code improvements were contributed by:
https://github.com/yuku-t/jquery-textcomplete/graphs/contributors