The <contextmenu> represents a context (right-click) menu.
Example 18. lz.contextmenu example
<canvas height="60">
<view width="240" height="40" bgcolor="#aeaeae">
<contextmenu>
<contextmenuitem caption="menu item"/>
</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, styleclass, subnodes, transition
Methods
| addItem() |
|---|
| clearItems() |
|---|
| getItems() |
|---|
| hideBuiltInItems() |
|---|
| makeMenuItem() |
|---|
| Parameter Name | Type | Description |
|---|---|---|
| title | String | menu item name |
| delegate | lz.handler | delegate to execute when item is selected |
| 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 onmenuopen event is also sent. |
| showBuiltInItems() |
|---|
animate, applyConstraint, applyConstraintMethod, applyData, childOf, completeInstantiation, construct, createChildren, dataBindAttribute, destroy, determinePlacement, getOption, getUID, init, lookupSourceLocator, releaseConstraint, releaseConstraintMethod, searchImmediateSubnodes, searchSubnodes, setData, setDatapath, 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.