Module allows to insert reactions buttons with emojis and helps to get feedback from visitors.
To insert ReactionsModule in your page call function ReactionsModule with 2 parameters.
- Object with methods:
- Method "get" returns array of objects with "count" and "reaction" parameters. "count" is rate of this reaction. "reaction" is personal selection(selected by the user - true)
- Method "set" recieves the index of the reaction selected by the user and returns the value of the method get
- Method "getEmojis" - return array of string contains code of the emoji.
- HTML element - container for the ReactionBlock