The class <contextmenuitem> represents a menu item within a context menu.
Example 41. 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>
classroot, cloneManager, datapath, defaultplacement, id, ignoreplacement, immediateparent, inited, initstage, name, nodeLevel, options, parent, placement, subnodes
Methods
| getCaption() |
|---|
| setCaption() |
|---|
![]() |
This method is deprecated |
|---|---|
| Use setAttribute('caption', ...) instead. |
| setDelegate() |
|---|
![]() |
This method is deprecated |
|---|---|
| Use setAttribute('delegate', ...) instead. |
| Parameter Name | Type | Description |
|---|---|---|
| delegate | lz.handler | delegate which is executed when item is selected. An onselect event is also sent. |
| setEnabled() |
|---|
![]() |
This method is deprecated |
|---|---|
| Use setAttribute('enabled', ...) instead. |
| Parameter Name | Type | Description |
|---|---|---|
| val | boolean | if false, menu item is grayed out and will not respond to clicks |
| setSeparatorBefore() |
|---|
![]() |
This method is deprecated |
|---|---|
| Use setAttribute('separatorbefore', ...) instead. |
| setVisible() |
|---|
![]() |
This method is deprecated |
|---|---|
| Use setAttribute('visible', ...) instead. |
animate, applyConstraint, applyConstraintMethod, applyData, childOf, completeInstantiation, construct, createChildren, dataBindAttribute, destroy, determinePlacement, getAttribute, getOption, getUID, init, lookupSourceLocator, releaseConstraint, releaseConstraintMethod, searchImmediateSubnodes, searchSubnodes, setData, setDatapath, setOption, setSelected, updateData
Copyright © 2002-2008 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.