Start of Content Area

Object documentation MenuActionItem API   Locate the document in its SAP Library structure

Definition

The MenuActionItem element is a subelement of the MenuItem element. You can use this subelement to define an action for a menu item (or MenuItem object). You can link this view element to a graphic using the imageSource property.

Description of Properties

·        enabled
Indicates whether or not the menu item can be selected.

·        imageSource
Specifies the Web address (URL) of the graphic to be displayed.

·        needsMoreInfo
Adds … to the text of the menu item to indicate to the user that additional user input is required after selecting this menu item.

The following screenshot illustrates this property:
This graphic is explained in the accompanying text

·        text
Describes the text to be displayed.

·        textDirection
Specifies the text direction and allows you to use a MenuActionItem element for texts in languages which require a specific text direction.
The textDirection property can be filled with the following values and is represented by the enumeration type WDTextDirection.

inherit

The text direction is inherited from the parent element. Therefore, the text direction is identical to the one of the parent element.

ltr

The text runs from left to right.

rtl

The text runs from right to left.

The default value for this property is inherit.

Overview of Inherited and Additional Properties

Name

Interface

Type

Initial Value

Bindable

Value Required

enabled

IWDMenuActionItem

boolean

true

bindable

No

imageSource

IWDMenuActionItem

String

 

bindable

No

needsMoreInfo

IWDMenuActionItem

boolean

false

bindable

No

text

IWDMenuActionItem

String (TranslatableText)

 

bindable

No

textDirection

IWDMenuActionItem

WDTextDirection

inherit

bindable

No

Events

·        onAction
This property assigns the action of the view controller that is executed when the user selects MenuActionItem element.

 

End of Content Area