The class <contextmenuitem> represents a menu item within a context menu.
Example 18. lz.contextmenuitem example
<canvas height="60">
<view width="240" height="40" bgcolor="#aeaeae">
<contextmenu>
<contextmenuitem caption="menu item"/>
<contextmenuitem caption="disabled menu item" enabled="false"/>
<contextmenuitem caption="menu item with separator" separatorbefore="true"/>
</contextmenu>
<text align="center">Right click for context menu</text>
</view>
</canvas>
| Name (CSS property) | Type (tag) | Type (js) | Default | Category |
|---|---|---|---|---|
caption
|
string | String | read/write | |
| Sets the text which is displayed for the menu item | ||||
delegate
|
expression | lz.handler | read/write | |
| Sets the delegate which will be called when the menu item is selected. | ||||
enabled
|
boolean | Boolean | read/write | |
| Sets the enabled status of the menu item. If false, the menu item is grayed out and will not respond to clicks | ||||
separatorbefore
|
boolean | Boolean | read/write | |
| Draw a horizontal separator line before this item in the menu. | ||||
visible
|
boolean | Boolean | read/write | |
| Sets the visibility of the menu item. | ||||
classroot, cloneManager, data, datapath, defaultplacement, id, ignoreplacement, immediateparent, inited, initstage, name, nodeLevel, options, parent, placement, styleclass, subnodes, transition
Methods
animate, applyConstraintMethod, applyData, childOf, completeInstantiation, construct, createChildren, dataBindAttribute, destroy, determinePlacement, getOption, getUID, init, lookupSourceLocator, releaseConstraint, releaseConstraintMethod, searchImmediateSubnodes, searchSubnodes, setOption, setSelected, updateData
Copyright © 2002-2010 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.