EditLive! 9 Documentation : menuItemGroup

This element contains information for a grouping on the menu. A grouping is a set of two or more items which are related and their selection is mutually exclusive within EditLive!. For example, the Source View and Design View commands exist in a <menuItemGroup>. The commands added by this element can only be added and removed from the menu as a group.

<editLive>
<menuBar>
<menu>
<menuItemGroup>

<editLive>
     ...
     <menuBar>
          <menu>
               <menuItemGroup ... />
          </menu>
     </menuBar>
     ...
</editLive>

This attribute gives the name for the command group. It must be a command from the Menu and Toolbar Item List.

The following example demonstrates how to add the Design View and Code View commands to the menu bar.

<editLive>
    ...
    <menuBar>
        <menu name="View">
            <menuGroupItem name="SourceView"/>
        </menu>
    </menuBar>
    ...
</editLive> 

The <menuGroupItem> element can appear multiple times within the <menu> element.

The <menuGroupItem> element must be a complete tag; it cannot contain a tag body. Therefore, the tag must be closed in the same line. See the example below:

<menuGroupItem name=... />