search

goog.ui.emoji.EmojiPicker

Provided By
Extends
All Implemented Interfaces

Creates a new, empty emoji picker. An emoji picker is a grid of emoji, each cell of the grid containing a single emoji. The picker may contain multiple pages of emoji.

When a user selects an emoji, by either clicking or pressing enter, the picker fires a goog.ui.Component.EventType.ACTION event with the id. The client listens on this event and in the handler can retrieve the id of the selected emoji and do something with it, for instance, inserting an image tag into a rich text control. An emoji picker does not maintain state. That is, once an emoji is selected, the emoji picker does not remember which emoji was selected.

The emoji picker is implemented as a tabpane with each tabpage being a table. Each of the tables are the same size to prevent jittering when switching between pages.

new EmojiPicker( defaultImgUrl, opt_domHelper )

Parameters
defaultImgUrlstring

Url of the img that should be used to fill up the cells in the emoji table, to prevent jittering. Should be the same size as the emoji.

opt_domHelper(goog.dom.DomHelper|null)=

Optional DOM helper.

Instance Methods

Instance Properties

Static Properties

Enumerations