Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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!