You are here: Deprecated Widgets > Important Considerations

MenuItem Widget

MenuItem is a choice on the Menu. It is typically a command or function such as Application Logout, Form Exit, Sending SMS, or other options that you can select inside a Menu.

You can add MenuItems for a specific Form. These MenuItems appear when you navigate to the Form (that contains the MenuItems) and select the Menu button on the device. The added MenuItems appear along with the regular device MenuItems for that Form.

Following are the real-time use cases of MenuItem widget:

The MenuItem widget capabilities can be broadly categorized into the following:

 

Miscellaneous

PropertiesDescription
focusImageSpecifies the image to be displayed when the focus is on the MenuItem.
imageSpecifies the image to be displayed for the MenuItem.
titleSpecifies the title of the menuitem.
typeSpecifies the type of the MenuItem as ok, back, or exit.
 
EventsDescription
onClickAn event callback is invoked by the platform when the user performs a click action on the Menuitem.

Configurations Common To All Widgets

PropertiesDescription
id id is a unique identifier of Menuitem consisting of alpha numeric characters.
infoA custom JSObject with the key value pairs that a developer can use to store the context with the widget.
 

MenuItem Widget Basics

Note: Menuitem is supported only on Android/Android tablet, and J2ME.

Important Considerations

premCopyright © 2012 Kony, Inc. All rights reserved.
premCopyright © 2012 Kony, Inc. All rights reserved.