Menu data genie
Description
The Menu data genie is used to define the menu for the ExpandingMenu control.
Discussion
The Menu data genie is used to build the menu for the ExpandingMenu control. To open the genie, click the button for the Menu data genie property.
Use the Add item - Sibling and Add item - Child tools to add menu items for the ExpandingMenu control. You can add as many items as desired.
The Add item - Sibling and Add item - Child both support adding multiple items. You can nest items using the tab key. For example, the text below will create a menu with one sub-menu:
item1 item2 item3 submenu1 item4 item5 item6 item7
When you click OK, Alpha Anywhere will generate the tree menu. Each menu item has properties that can be used to configure the menu item's behavior, display, content, and more. See the Tree Data Genie Properties section for information about these properties.
Tree Data Genie Tools
The following tools are used to add, remove, and organize menu items in the Tree Data Genie:
- Tool
- Description
Move selected item to the top.
Move selected item up one position.
Move selected item down one position.
Move selected item to the bottom.
Decrease the nested level by one. If the item is a child, it will become a sibling of the items one level above.
Increase the nested level by one. This will make the item a child of the menu item above it.
- Add item - Sibling
Add one or more items as a sibling for the currently selected item.
- Add item - Child
Add one or more items as a child for the currently selected item.
Delete all menu items.
Delete the selected menu item.
Tree Data Genie Properties
Leaf Properties
- Item
The name of the leaf item.
- Icon
(Optional) Specify an icon to display before the text for this menu item.
- Value
(Optional) Specify a value. Value is only needed if you use {dialog.object}.getValue() and {dialog.object}.setValue() on this control.
- onClick
The onClick event can be used to define JavaScript (such as a Javascript Action to display a Panel) to call when the item is clicked.
Branch Properties
- Item
The name of the branch item.
- Icon
(Optional) Specify an icon to display before the menu text
- Initial state
Initial state property. Choices include.
- Value
(Optional) Specify a value. Value is only needed if you use {dialog.object}.getValue() and {dialog.object}.setValue() on this control.
- onClick
(Optional) onClick event handlers are usually only defined for menu leaf nodes.
Security Properties
- Security Groups
Select which security groups can see this object. If no groups are selected, all users can see the object.
Server-Side Properties
- Show/hide expression
Specify an expression to determine if the item should be shown. You can use session variables in the expression. The item is shown if the expression is blank, or if a non-blank expression evaluates to .t. . If the expression cannot be evaluated, the item is not shown.
Client-Side Properties
- Show/hide Javascript
Specify Javascript to determine if the item should be shown. Your Javascript code should either return true or false.