5.35. Menu Item (element)

<menu> ‐ A menu item

5.35.1. Attributes

NameTypeDefaults
valueSTRINGNone (required)
messageSTRINGNone (required)

5.35.2. Description

This element is attached to a menu The selection of an item in a menu or in a sub-menu is used to trigger an action in the script attached to the node that contains the root menu through message passing.

The string value of the value attribute is the text displayed to identify this item.

The string value of the message attribute defines the message that will be sent to the node that contains the root menu. This message can be received by a command attached to the script of this node and with a message_event-based trigger.

5.35.3. Expected child

None.

5.35.4. Example

In the example below, the selection of this item will send the message ssitem1 to the node that contains the root menu to which this item is attached.

<item message="ssitem1" value="Sub-sub-item 1" />