Press "Enter" to skip to content

Creates A Small Dropdown List of Selectable Emojis | EmojiButtonList.js

EmojiButtonList.js is a JavaScript library that creates a small dropdown list of selectable Emojis.

A very small JavaScript library (2.5 KB mini) to create an emoji picker button, which allows you to choose emojis from the popup when clicked.

How to make use of it:

1. Attach the emoji picker button to your input field.

<input id="example" type="text" />
<button id="picker">Emoji Picker</button>

2. Load the EmojiButtonList.js JavaScript library within the doc.

<link rel="stylesheet" href="src/emojibuttonlistjs.min.css" />
<script src="src/emojibuttonlistjs.min.js"></script>

3. Initialize the emoji picker button.

instance = new emojiButtonList( "picker", {
  textBoxID: "example"
})

4. Config the emoji picker with the next parameters:

instance = new emojiButtonList( "picker", {
  dropDownXAlign: "left",
  dropDownYAlign: "bottom"
  yAlignMargin: 0,
  xAlignMargin: 0,
  emojiRangesToShow: []
})

5. Trigger a function after an emoji has been chosen.

instance = new emojiButtonList( "picker", { 
  onEmojiClick: function(emojiText) {
    // do something
  }
})

Tiny Emoji Picker, EmojiButtonList.js Plugin/Github


See Demo And Download

Official Website(williamtroup): Click Here

This superior jQuery/javascript plugin is developed by williamtroup. For extra Advanced Usages, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.