<menuItemGroup> Configuration Element

This element contains information for a grouping on the menu. The commands added by this element can only be added and removed from the menu as a group.

A grouping is a set of two or more items which are related and their selection is mutually exclusive within EditLive! for XML. For example, the Source View and Design View commands exist in a <menuItemGroup>.

Configuration Element Tree Structure

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

Required Attributes

name

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

Examples

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

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

Remarks

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=... />