menu-item

Menu items are used in dropdown menus in the Xopus interface.

Example

<dropdown-button after="SaveButton">
  <menu>
    <menu-group>
      <menu-item iconsrc="html.gif" command="publishHTMLCommand" label="Make HTML"/>
    </menu-group>  
  </menu>
</dropdown-button>

menu-item element

Namespace: http://xopus.com/2009/lui

Attributes

command
The name of the command this button is coupled with. See Editor.addCommand (Optional)
role
The role attribute can be defined as a replacement of the command attribute. The value of this attribute must correspond to a role definition from the node configuration for an element. The will effectively create a toolbar button which acts similarly to the bold button. (Optional)
iconsrc
URL for the icon on this button. Relative URI's are resolved from the location of the configuration file. The size of this icon should be 24x24, with the picture inside the 18x18 range. Use a transparent GIF, as we are not adding alpha styling for PNG. (Optional)
id
The ID for this button component. (Optional)
label
The text of the item.

Parent Elements

menu-group

History

version event
Xopus 4.1.3 Introduction.