2.1.0 • Published 4 years ago

crowdmap-widget v2.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Crowdmap widget

Widget to collect feedback and send it to the Crowdmap application.

Installation

Using npm :

$ npm i --save cm-widget

Initialise the widget

Initialise the widget on all pages you want it :

<script src="dist/cm-widget.min.js"></script>
cmWidget.init(
  {
    team  : 'YOUR_ORGANIZATION_NAME', // Required, the organization name who specified when you create your account on https://app.crowdmap.io
    tags  : ['website', 'bug'], // Optional. Array of tags.
    email : 'erwan@crowdmap.io',  // Optional. Email of the author, if not specified, an input will appear in the widget.
    language:'en', // Widget language, accepted values : 'en' (default) or 'fr'
    theme: 'light' // Widget theme, accepted values : 'dark' (default) or 'light'
  });

See our documentation if you want more information or contact us on contact@crowdmap.io

Features

Show / hide widget

cmWidget.showWidget();
cmWidget.hideWidget();

Add & remove tag

cmWidget.removeTag("website");
cmWidget.addTag("website");

Edit the email

cmWidget.setEmail("ben@crowdmap.io");
2.1.0

4 years ago

2.0.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago