Class: ImeMenu

ImeMenu

new ImeMenu(listItems, title, successCb, cancelCb)

ImeMenu displays a list of currently enabled IMEs in an overlay.

ImeMenu displays a list of currently enabled IMEs in an overlay.

Parameters:
Name Type Description
listItems Array

An array of objects to display.

title String

L10n ID of the the content of the header.

successCb function

Called when the user selects an option.

cancelCb function

Called when the menu is cancelled.

Source:

Methods

buildMenu()

Builds the dom for the menu.

Builds the dom for the menu.

Source:

handleEvent(evt)

General event handler interface.

General event handler interface. Handles submission and cancellation events.

Parameters:
Name Type Description
evt DOMEvent

The event.

Source:

hide(callback)

Hides the ImeMenu.

Hides the ImeMenu.

Parameters:
Name Type Description
callback function

The callback to call after hiding.

Source:

imeMenuView()

Returns the view for the ime menu.

Returns the view for the ime menu.

Source:

initUI()

Builds dom and adds event listeners

.

Builds dom and adds event listeners

Source:

launchSettings()

To lauch the settings via web activity.

To lauch the settings via web activity.

Source:

Returns the view for a menu item.

Returns the view for a menu item.

Source:

preventFocusChange(evt)

When IME switcher shows, prevent the keyboard focus getting changed.

When IME switcher shows, prevent the keyboard focus getting changed.

Parameters:
Name Type Description
evt DOMEvent

The event.

Source:

start()

Start the ImeMenu instance

.

Start the ImeMenu instance

Source:

stop()

Removes the dom and stops event listeners

.

Removes the dom and stops event listeners

Source: