Home

# Class goog.ui.emoji.PopupEmojiPicker

Constructs a popup emoji picker widget.

extends goog.ui.Component

Instance Method Summary
| `addEmojiGroup((Element|null|string) title, ?Array.<(Array|null)> emojiGroup)` Adds a group of emoji to the picker.
| `attach(?Element element)` Attaches the popup emoji picker to an element.
| `createDom()` Creates the initial DOM representation for the component. The default implementation is to set this.element_ = div.
| `detach(?Element element)` Detatches the popup emoji picker from an element.
| `disposeInternal()` Disposes of the component. Calls {@code exitDocument}, which is expected to remove event handlers and clean up the component. Propagates the call to the component's children, if any. Removes the component's DOM from the document unless it was decorated.
| `getAutoHide() ⇒ boolean` Returns whether the Popup dismisses itself when the user clicks outside of it.
| `getAutoHideRegion() ⇒ ?Element` Returns the region inside which the Popup dismisses itself when the user clicks, or null if it was not set. Null indicates the entire document is the autohide region.
| `getEmojiPicker() ⇒ ?goog.ui.emoji.EmojiPicker`
| `getLastTarget() ⇒ ?Element`
| `getNumEmojiGroups() ⇒ number` Returns the number of emoji groups in this picker.
| `getPopup() ⇒ ?goog.ui.PopupBase` Returns the {@link goog.ui.PopupBase} from this picker. Returns null if the popup has not yet been created. NOTE: This should *ONLY* be called from tests. If called before createDom(), this should return null.
| `getSelectedEmoji() ⇒ ?goog.ui.emoji.Emoji`
| `getToggleMode() ⇒ boolean` Gets whether the emojipicker is in toggle mode
| `loadImages()` Causes the emoji imgs to be loaded into the picker. Used for delayed loading.
| `onEmojiPicked_(?goog.events.Event e)` Handles selection of an emoji.
| `setAutoHide(boolean autoHide)` Sets whether the Popup dismisses itself when the user clicks outside of it - must be called after the Popup has been created (in createDom()), otherwise it does nothing.
| `setAutoHideRegion(?Element element)` Sets the region inside which the Popup dismisses itself when the user clicks - must be called after the Popup has been created (in createDom()), otherwise it does nothing.
| `setDelayedLoad(boolean shouldDelay)` Sets whether loading of images should be delayed until after dom creation. Thus, this function must be called before {@link #createDom}. If set to true, the client must call {@link #loadImages} when they wish the images to be loaded.
| `setFocusable(boolean focusable)` Sets whether the emoji picker can accept focus.
| `setNumColumns(number numCols)` Sets the number of columns per grid in the emoji picker. This should only be called before the picker has been rendered.
| `setNumRows(number numRows)` Sets the number of rows per grid in the emoji picker. This should only be called before the picker has been rendered.
| `setProgressiveRender(boolean progressive)` Sets the progressive rendering aspect of this emojipicker. Must be called before createDom to have an effect.
| `setTabLocation(?goog.ui.TabPane.TabLocation tabLocation)` Sets the location of the tabs in relation to the emoji grids. This should only be called before the picker has been rendered.
| `setToggleMode(boolean toggle)` Sets whether the emoji picker should toggle if it is already open.
| `setUrlPrefix(string urlPrefix)` Sets the URL prefix for the emoji URLs.
| `show_(?goog.events.BrowserEvent e)` Handles click events on the element this picker is attached to and shows the emoji picker in a popup.