@recogito/recogito-comments-mention

0.1.0 • Public • Published

Recogito Comments-Mention Widget

A Recogito comment thread widget that lets you @-mention users like on Facebook or Twitter.


Screenshot


Run in Development Mode

$ npm start

Build Widget Distribution

$ npm run build

Using the plugin

<html>
  <head>
    <script src="recogito.min.js"></script>
    <script src="recogito-comments-mention.min.js"></script>
  </head>
  <body>
    <script type="text/javascript">
      (function() {

        let users = [
          {
            id: 'johndoe@apple.com',
            name: 'John'
          },
          {
            id: '1',
            name: 'Johnny'
          }
        ]

        var r = Recogito.init({
          content: 'content', 
      	  widgets: [
            { widget: recogito.CommentsMention, userSuggestions: users }
          ]
        });
      })();
    </script>
  </body>
</html>

Readme

Keywords

none

Package Sidebar

Install

npm i @recogito/recogito-comments-mention

Weekly Downloads

1

Version

0.1.0

License

BSD-3-Clause

Unpacked Size

127 kB

Total Files

9

Last publish

Collaborators

  • aboutgeo