...
Once you've added the trigger, you will need to create a new instance of LIVECHATSDK.LIVECHAT.emojiPicker
EmojiButton
object class.
Code Block | ||
---|---|---|
| ||
LIVECHATSDK.SDK.getEmojiPicker().then ( function(emojiClass) { window.emoji_picker = new LIVECHATSDKemojiClass.LIVECHAT.emojiPickerEmojiButton( { "position": "auto", "showPreview": false, "recentsCount": 6, "autoHide": false, "showVariants": false, "autoFocusSearch": true, "emojiSize": "1.2em", "emojisPerRow": 6, "emojiVersion": "11.0", "categories": ["smileys", "people", "animals", "food", "activities", "travel", "objects", "symbols"], "zIndex": 10000, "showAnimation": true } ); } ); |
After constructing a picker, it can be shown by calling showPicker
or togglePicker
methods. These functions expect a reference element as a parameter. The picker is positioned relative to this reference element according the “position” parameter.
...