Skip to main content

EmojiPicker

The main emoji picker component.

Not created directly, but rather as a result of calling the createPicker function, which returns a fully initialized instance.

Methods

addEventListener

addEventListener(event: ExternalEvent, callback: function): void

Adds an event listener to the picker.

Arguments

  • event: The event to listen for.
  • listener: The function to call when this event is emitted.
    • Type: function

clearRecents

clearRecents(): void

Removes all recent emojis from the picker, as managed by the recents provider.

destroy

destroy(): void

Destroys the picker when it is no longer needed. After calling this method, the picker will no longer be usable.

removeEventListener

removeEventListener(event: ExternalEvent, callback: function): void

Removes an event listener from the picker.

Arguments

  • event: The event to remove the listener from.
  • listener: The previously registered listener function to remove.
    • Type: function

reset

reset(): void

Resets the picker back to its initial state.

updateOptions

updateOptions(options: UpdatableOptions): void

Updates picker options after the picker has been created. Updated options take effect immediately.

Not all options are updatable; see UpdatableOptions for a list of supported options.