Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tsega/meteor-mentions
Uses mention.js, https://github.com/jakiestfu/Mention.js/ to provide Bootstrap Typeahead list of users following `@` symbol in form element of a Meteor.js App.
https://github.com/tsega/meteor-mentions
Last synced: about 2 months ago
JSON representation
Uses mention.js, https://github.com/jakiestfu/Mention.js/ to provide Bootstrap Typeahead list of users following `@` symbol in form element of a Meteor.js App.
- Host: GitHub
- URL: https://github.com/tsega/meteor-mentions
- Owner: tsega
- License: mit
- Created: 2015-01-24T11:50:09.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-03T16:09:53.000Z (almost 9 years ago)
- Last Synced: 2023-08-09T23:28:20.331Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @mentions in Meteor Apps
To install
----------```sh
$ meteor add tsega:mentions
```To use
------On the client, for the `Template.myTemplate.rendered` event callaback of the template you have your input box in add the following code:
```js
Template.myTemplate.rendered = function(){
$("input").mention({
delimiter: '@',
users: Meteor.users.find().fetch()
});
};
````Meteor.users.find().fetch()` part should not be used on a production app or an app that has many users.
## Improvements to the package are very welcome!