|
|
%!s(int64=9) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| dist | %!s(int64=9) %!d(string=hai) anos | |
| doc | %!s(int64=9) %!d(string=hai) anos | |
| src | %!s(int64=9) %!d(string=hai) anos | |
| .gitattributes | %!s(int64=9) %!d(string=hai) anos | |
| .meteor-portable | %!s(int64=9) %!d(string=hai) anos | |
| .npmignore | %!s(int64=9) %!d(string=hai) anos | |
| CHANGELOG.md | %!s(int64=9) %!d(string=hai) anos | |
| Gruntfile.js | %!s(int64=9) %!d(string=hai) anos | |
| LICENSE | %!s(int64=9) %!d(string=hai) anos | |
| README.md | %!s(int64=9) %!d(string=hai) anos | |
| bower.json | %!s(int64=9) %!d(string=hai) anos | |
| package.json | %!s(int64=9) %!d(string=hai) anos | |
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