Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
component.css
component.js
component.json
dependencies.html
example.html
picture.jpg
readme.md

readme.md

j-Emoji

  • Using UTF emoji
  • Personal history with frequently used emoticons
  • Great search tool
  • Changeable skin tones

Configuration:

  • categories {String} change emoticons in categories. Use unicode without special characters (default: 128342,128578,128161,127944,128008,128690,128172,127828,127937)
  • height {Integer} set component height (default: 295)
  • history {Integer} history limit for frequently used emoticons (default: 49)
  • empty {String} a message when no emoticons are found (default: No emoji match your search)
  • emptyemoji {Integer} change emoticon when no emoticons are found. Use unicode without special characters (default: 128557)
  • speed {Integer} scroll speed in ms (default: 500)
  • footer {String} footer message (default: Choose skin tone)
  • toneemoji {String} skin tones emoticon. Use unicode without special characters (default: 9995)

Good to know:

  • This component implements FUNC.parseASCI(string) function. The function will parse string and transform text like :D or :joy: into UTF emoticons.
var message = 'This one was good. :joy: See you soon :P';
console.log(FUNC.parseASCI(message)); // This one was good. 😂 See you soon 😛

Usage

var opt = {};

// opt.offsetX {Number}    : adds X offset (default: 0)
// opt.offsetY {Number}    : adds Y offset (default: 0)
// opt.align {String}      : align `left` (default), `center` or `right`
// opt.position {String}   : position `top` (default) or `bottom`

opt.element = YOUR_ELEMENT;
// or if you want to use a fixed position:
// opt.x {Number}          : `x` position
// opt.y {Number}          : `y` position

opt.callback = function(emoji) {
	console.log(emoji); // callback parameter has String.fromCodePoint() value
};

SETTER('emoji', 'show', opt);

Author

You can’t perform that action at this time.