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.
·
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:
·
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.
The text direction is inherited from the parent element. Therefore, the text direction is identical to the one of the parent element. |
|
The default value for this property is inherit.
Name |
Interface |
Type |
Initial Value |
Bindable |
Value Required |
enabled |
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 |
·
onAction
This property assigns the
action of the view controller that is executed when the user selects
MenuActionItem element.