Add Github like mentions autocomplete to your application.
MIT License
This project was no longer maintained. You could use zurb tribute instead.
An autocompletion library to autocomplete mentions, smileys etc. just like on Github!
At.js now depends on Caret.js. Please read CHANGELOG.md for more details if you are going to update to new version.
http://ichord.github.com/At.js
https://github.com/ichord/At.js/wiki
textarea
- Chrome, Safari, Firefox, IE7+ (maybe IE6)contentEditable
- Chrome, Safari, Firefox, IE9+Tab
or Enter
keys select the valueUp
and Down
navigate between values (and Ctrl-P
and Ctrl-N
also)Right
and left
will re-search the keyword.Component
or Bower
to install it.)Simply include the following files in your HTML and you are good to go.
<link href="css/jquery.atwho.css" rel="stylesheet">
<script src="http://code.jquery.com/jquery.js"></script>
<script src="js/jquery.caret.js"></script>
<script src="js/jquery.atwho.js"></script>
$('#inputor').atwho({
at: "@",
data:['Peter', 'Tom', 'Anne']
})
For installing using Bower you can use jquery.atwho
and for Component please use ichord/At.js
.
You can include At.js in your Rails
application using the gem jquery-atwho-rails.