ShowEvent property
ShowEvent property controls the event that triggers the display of the menu.
The valid values for this property are:
· ContextMenu
· MouseClick
· MouseOver
· Always (new!)
ContextMenu - EasyMenu is displayed on right-click.
<oem:EasyMenu id="EasyMenu1" runat="server" ShowEvent="ContextMenu" AttachTo="div1, div2, div3">
| Right-click on these to test: |
|
|
|
Note: this option is not supported by the Opera browser.
MouseClick - EasyMenu is displayed on left-click.
<oem:EasyMenu id="EasyMenu2" runat="server" ShowEvent="MouseClick" AttachTo="div4, div5, div6">
| Left-click on these to test: |
|
|
|
MouseOver - EasyMenu is displayed when cursor hovers over.
<oem:EasyMenu id="EasyMenu3" runat="server" ShowEvent="MouseOver" AttachTo="div7, div8, div9">
Always (new!) - EasyMenu is always displayed on the page.
<oem:EasyMenu id="EasyMenu4" runat="server" ShowEvent="Always">
Note:
· When ShowEvent is set to Always, the menu is shown at the position where it is defined on the page.
· You can use this type of menu to attach submenus to its items and create a site navigation menu.
· When using this ShowEvent, menu doesn't need any AttachTo or Align property set
| |