GWC Template Language Reference / Template Paths - TopMenu hierarchy |
Path: application/ui/topmenu or application/ui/window/form/topmenu
Snippet ID: TopMenu
Corresponding AUI Tree element: TopMenu
The TopMenu is a unique sub-object from the UserInterfaceor Form object that represents the application or window top menu (if any).
This object value is rendered thru the TopMenu snippet when invoked in a gwc:replace or gwc:content instruction.
Fields (Attributes) | Type | Description |
---|---|---|
CID | Attribute (string) | The corresponding component identifier. |
type | Attribute (string) | Type name of the component, that is TopMenu. |
name | Attribute (string) | TopMenu identifier. |
hidden | Attribute (number) | Corresponds to the HIDDEN attribute in 4GL. |
tag | Attribute (string) | Corresponds to the attribute TAG value. |
items | Collection of TopMenuItem objects | The list of all items in the top menu.Used in a repeat instruction to loop on each file in the list. |
items/length | Attribute (number) | Number of items in the collection. |
command | Object | A TopMenuCommand object. |
group | Object | A TopMenuGroup object. |
separator | Object | A TopMenuSeparator object |
<div gwc:condition="application/ui/window/form/topmenu" gwc:repeat="var application/ui/window/form/topmenu/items"> <div gwc:content="var/type +' : '+ var/text " /> </div>
Displays the type and text of items in the TopMenu.