Used to create a menu incorporating image and text effects. Menus may be nested. You use a theme to set the orientation of the contained menuitem elements.
The menu element should appear at top-level, inside the canvas element. If it is used inside a pane element, the output order of the menu and other elements in the pane may not be correct.
Attribute | Description | Type | Default | Options | Use |
---|---|---|---|---|---|
errmsg | Error message for invalid voice input | xs:string | none | optional | |
help | Help text for the menu | xs:string | none | optional | |
prompt | Prompt text for the menu | xs:string | none | optional | |
type | The type of menu | xs:string | none | plaintext, rollovertext, rolloverimage | deprecated |
The welcome.mlyt layout can be found in the MCS/repository/xml-repository directory.
<?xml version="1.0" encoding="UTF-8"?>
<canvas layoutName="/welcome.mlyt" pageTitle="menu">
<menu pane="congratulations" title="Menu">
<label>Main Menu</label>
<menuitem href="home.xml" text="Home"/>
<menuitem href="specials.xml" text="Special Offers"/>
</menu>
<pane name="background">
<p>Welcome</p>
</pane>
</canvas>