|
|
před 9 roky | |
|---|---|---|
| .. | ||
| dist | před 9 roky | |
| doc | před 9 roky | |
| src | před 9 roky | |
| .gitattributes | před 9 roky | |
| .meteor-portable | před 9 roky | |
| .npmignore | před 9 roky | |
| CHANGELOG.md | před 9 roky | |
| Gruntfile.js | před 9 roky | |
| LICENSE | před 9 roky | |
| README.md | před 9 roky | |
| bower.json | před 9 roky | |
| package.json | před 9 roky | |
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