GWC Template Language Reference / Template Paths - Toolbar hierarchy |
Path: application/ui/toolbar or application/ui/window/form/toolbar
Snippet ID: Toolbar
Corresponding AUI Tree element: Toolbar
The Toolbar is a unique sub-object from the UserInterface or Form object that represents the application or window tools bar if any.
This object value is rendered thru the Toolbar 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 ToolBar. |
name | Attribute (string) | ToolBar identifier. |
hidden | Attribute (number) | Corresponds to the HIDDEN attribute in 4GL. |
tag | Attribute (string) | Corresponds to the attribute TAG value. |
items | Collection of ToolBarItem 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. |
item[ item-name ] | Object | the ToolBarItem named attribute-name |
style[ attribute-name ] | Attribute (string) | This selectable path will return the given attribute value inherited for this window. |
decorationstyle[ attribute-name ] | Collection of DecorationStyleItem objects | This selectable path will return the given attribute value DecorationStyleItem object for this object. This object gives access to all pseudo-selector values for the given attribute. |
decorationstyles | Collection of DecorationStylesItem objects | This path will return a DecorationStylesItem object for this window. This object gives access to all style attributes. |
contextMenu | Attribute (string) | Corresponds to the CONTEXTMENU attribute in 4GL. |
<div gwc:condition="application/ui/toolbar" gwc:repeat="var application/ui/toolbar/items"> <div gwc:condition="var/type=='ToolBarItem' && !var/isActive" gwc:content="'item: ' + var/text + ' - image: '+ var/image " /> </div>
Displays the list of inactive commands in the ToolBar