<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxPopupMenu"></a>mxPopupMenu</h1><divclass=CBody><p>Basic popup menu. To add a vertical scrollbar to a given submenu, the following code can be used.</p><blockquote><preclass="prettyprint">var elt = menu.addItem('Subitem 1', null, function()
{
alert('Subitem 2');
}, submenu1);
var container = elt.parentNode.parentNode.parentNode;
container.style.overflowY = 'scroll';
container.style.maxHeight = '160px';</pre></blockquote><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxPopupMenu">mxPopupMenu</a></td><tdclass=SDescription>Basic popup menu. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxPopupMenu.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxPopupMenu.mxPopupMenu">mxPopupMenu</a></td><tdclass=SDescription>Constructs a popupmenu.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxPopupMenu.Events">Events</a></td><tdclass=SDescription></td></tr><trclass="SEvent SIndent2 SMarked"><tdclass=SEntry><ahref="#mxPopupMenu.mxEvent.SHOW">mxEvent.SHOW</a></td><tdclass=SDescription>Fires after the menu has been shown in <ahref="#mxPopupMenu.popup"class=LFunctionid=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">popup</a>.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxPopupMenu.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxPopupMenu.submenuImage"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">submenuImage</a></td><tdclass=SDescription>URL of the image to be used for the submenu icon.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxPopupMenu.zIndex"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">zIndex</a></td><tdclass=SDescription>Specifies the zIndex for the popupmenu and its shadow. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxPopupMenu.factoryMethod"id=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">factoryMethod</a></td><tdclass=SDescription>Function that is used to create the popup menu. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxPopupMenu.useLeftButtonForPopup"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">useLeftButtonForPopup</a></td><tdclass=SDescription>Specifies if popupmenus should be activated by clicking the left mouse button. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxPopupMenu.enabled"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">enabled</a></td><tdclass=SDescription>Specifies if events are handled. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxPopupMenu.itemCount"id=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')">itemCount</a></td><tdclass=SDescription>Contains the number of times <ahref="#mxPopupMenu.addItem"class=LFunctionid=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')">addItem</a> has been called for a new menu.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxPopupMenu.autoExpand"id=link9onMouseOver="ShowTip(event, 'tt9', 'link9')"onMouseOut="HideTip('tt9')">autoExpand</a></td><tdclass=SDescription>Specifies if submenus should be expanded on mouseover. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxPopupMenu.smartSeparators"id=link10onMouseOver="ShowTip(event, 'tt10', 'link10')"onMouseOut="HideTip('tt10')">smartSeparators</a></td><tdclass=SDescription>Specifies if separators should only be added if a menu item follows them. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxPopupMenu.labels"id=link11onMouseOver="ShowTip(event, 'tt11', 'link11')"onMouseOut="HideTip('tt11')">labels</a></td><tdclass=SDescription>Specifies if any labels should be visible. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxPopupMenu.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxPopupMenu.init"id=link12onMouseOver="ShowT
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.mxPopupMenu"></a>mxPopupMenu</h3><divclass=CBody><p>Constructs a popupmenu.</p></div></div></div>
<divclass="CEvent"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.mxEvent.SHOW"></a>mxEvent.SHOW</h3><divclass=CBody><p>Fires after the menu has been shown in <ahref="#mxPopupMenu.popup"class=LFunctionid=link26onMouseOver="ShowTip(event, 'tt1', 'link26')"onMouseOut="HideTip('tt1')">popup</a>.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.submenuImage"></a>submenuImage</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.submenuImage</td></tr></table></blockquote><p>URL of the image to be used for the submenu icon.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.zIndex"></a>zIndex</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.zIndex</td></tr></table></blockquote><p>Specifies the zIndex for the popupmenu and its shadow. Default is 1006.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.factoryMethod"></a>factoryMethod</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.factoryMethod</td></tr></table></blockquote><p>Function that is used to create the popup menu. The function takes the current panning handler, the <ahref="../model/mxCell-js.html#mxCell"class=LClassid=link27onMouseOver="ShowTip(event, 'tt24', 'link27')"onMouseOut="HideTip('tt24')">mxCell</a> under the mouse and the mouse event that triggered the call as arguments.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.useLeftButtonForPopup"></a>useLeftButtonForPopup</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.useLeftButtonForPopup</td></tr></table></blockquote><p>Specifies if popupmenus should be activated by clicking the left mouse button. Default is false.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.enabled"></a>enabled</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.enabled</td></tr></table></blockquote><p>Specifies if events are handled. Default is true.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.itemCount"></a>itemCount</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.itemCount</td></tr></table></blockquote><p>Contains the number of times <ahref="#mxPopupMenu.addItem"class=LFunctionid=link28onMouseOver="ShowTip(event, 'tt8', 'link28')"onMouseOut="HideTip('tt8')">addItem</a> has been called for a new menu.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.autoExpand"></a>autoExpand</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.autoExpand</td></tr></table></blockquote><p>Specifies if submenus should be expanded on mouseover. Default is false.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.smartSeparators"></a>smartSeparators</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.smartSeparators</td></tr></table></blockquote><p>Specifies if separators should only be added if a menu item follows them. Default is false.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.labels"></a>labels</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.labels</td></tr></table></blockquote><p>Specifies if any labels should be visible. Default is true.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.init"></a>init</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.init = function()</td></tr></table></blockquote><p>Initializes the shapes required for this vertex handler.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.isEnabled"></a>isEnabled</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.isEnabled = function()</td></tr></table></blockquote><p>Returns true if events are handled. This implementation returns <ahref="#mxPopupMenu.enabled"class=LVariableid=link29onMouseOver="ShowTip(event, 'tt6', 'link29')"onMouseOut="HideTip('tt6')">enabled</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.isPopupTrigger"></a>isPopupTrigger</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxPopupMenu.prototype.isPopupTrigger = function(</td><tdclass=PParameternowrap>me</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given event is a popupmenu trigger for the optional given cell.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>me</td><tdclass=CDLDescription><ahref="mxMouseEvent-js.html#mxMouseEvent"class=LClassid=link31onMouseOver="ShowTip(event, 'tt25', 'link31')"onMouseOut="HideTip('tt25')">mxMouseEvent</a> that represents the mouse event.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.addItem"></a>addItem</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxPopupMenu.prototype.addItem = function(</td><tdclass=PParameternowrap>title,</td></tr><tr><td></td><tdclass=PParameternowrap>image,</td></tr><tr><td></td><tdclass=PParameternowrap>funct,</td></tr><tr><td></td><tdclass=PParameternowrap>parent,</td></tr><tr><td></td><tdclass=PParameternowrap>iconCls,</td></tr><tr><td></td><tdclass=PParameternowrap>enabled</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds the given item to the given parent item. If no parent item is specified then the item is added to the top-level menu. The return value may be used as the parent argument, ie. as a submenu item. The return value is the table row that represents the item.</p><h4class=CHeading>Paramters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>title</td><tdclass=CDLDescription>String that represents the title of the menu item.</td></tr><tr><tdclass=CDLEntry>image</td><tdclass=CDLDescription>Optional URL for the image icon.</td></tr><tr><tdclass=CDLEntry>funct</td><tdclass=CDLDescription>Function associated that takes a mouseup or touchend event.</td></tr><tr><tdclass=CDLEntry>parent</td><tdclass=CDLDescription>Optional item returned by <ahref="#mxPopupMenu.addItem"class=LFunctionid=link32onMouseOver="ShowTip(event, 'tt8', 'link32')"onMouseOut="HideTip('tt8')">addItem</a>.</td></tr><tr><tdclass=CDLEntry>iconCls</td><tdclass=CDLDescription>Optional string that represents the CSS class for the image icon. IconsCls is ignored if image is given.</td></tr><tr><tdclass=CDLEntry>enabled</td><tdclass=CDLDescription>Optional boolean indicating if the item is enabled. Default is true.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.createSubmenu"></a>createSubmenu</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxPopupMenu.prototype.createSubmenu = function(</td><tdclass=PParameternowrap>parent</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Creates the nodes required to add submenu items inside the given parent item. This is called in <ahref="#mxPopupMenu.addItem"class=LFunctionid=link33onMouseOver="ShowTip(event, 'tt8', 'link33')"onMouseOut="HideTip('tt8')">addItem</a> if a parent item is used for the first time. This adds various DOM nodes and a <ahref="#mxPopupMenu.submenuImage"class=LVariableid=link34onMouseOver="ShowTip(event, 'tt2', 'link34')"onMouseOut="HideTip('tt2')">submenuImage</a> to the parent.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>parent</td><tdclass=CDLDescription>An item returned by <ahref="#mxPopupMenu.addItem"class=LFunctionid=link35onMouseOver="ShowTip(event, 'tt8', 'link35')"onMouseOut="HideTip('tt8')">addItem</a>.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.showSubmenu"></a>showSubmenu</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxPopupMenu.prototype.showSubmenu = function(</td><tdclass=PParameternowrap>parent,</td></tr><tr><td></td><tdclass=PParameternowrap>row</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Shows the submenu inside the given parent row.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.addSeparator"></a>addSeparator</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxPopupMenu.prototype.addSeparator = function(</td><tdclass=PParameternowrap>parent,</td></tr><tr><td></td><tdclass=PParameternowrap>force</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds a horizontal separator in the given parent item or the top-level menu if no parent is specified.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>parent</td><tdclass=CDLDescription>Optional item returned by <ahref="#mxPopupMenu.addItem"class=LFunctionid=link36onMouseOver="ShowTip(event, 'tt8', 'link36')"onMouseOut="HideTip('tt8')">addItem</a>.</td></tr><tr><tdclass=CDLEntry>force</td><tdclass=CDLDescription>Optional boolean to ignore <ahref="#mxPopupMenu.smartSeparators"class=LVariableid=link37onMouseOver="ShowTip(event, 'tt10', 'link37')"onMouseOut="HideTip('tt10')">smartSeparators</a>. Default is false.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.popup"></a>popup</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxPopupMenu.prototype.popup = function(</td><tdclass=PParameternowrap>x,</td></tr><tr><td></td><tdclass=PParameternowrap>y,</td></tr><tr><td></td><tdclass=PParameternowrap>cell,</td></tr><tr><td></td><tdclass=PParameternowrap>evt</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Shows the popup menu for the given event and cell.</p><h4class=CHeading>Example</h4><blockquote><preclass="prettyprint">graph.panningHandler.popup = function(x, y, cell, evt)
{
mxUtils.alert('Hello, World!');
}</pre></blockquote></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.isMenuShowing"></a>isMenuShowing</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.isMenuShowing = function()</td></tr></table></blockquote><p>Returns true if the menu is showing.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.showMenu"></a>showMenu</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.showMenu = function()</td></tr></table></blockquote><p>Shows the menu.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.hideMenu"></a>hideMenu</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.hideMenu = function()</td></tr></table></blockquote><p>Removes the menu and all submenus.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.hideSubmenu"></a>hideSubmenu</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxPopupMenu.prototype.hideSubmenu = function(</td><tdclass=PParameternowrap>parent</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Removes all submenus inside the given parent.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>parent</td><tdclass=CDLDescription>An item returned by <ahref="#mxPopupMenu.addItem"class=LFunctionid=link38onMouseOver="ShowTip(event, 'tt8', 'link38')"onMouseOut="HideTip('tt8')">addItem</a>.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxPopupMenu.destroy"></a>destroy</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.destroy = function()</td></tr></table></blockquote><p>Destroys the handler and all its resources and DOM nodes.</p></div></div></div>
</div><!--Content-->
<divid=Footer><ahref="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
<divclass=CToolTipid="tt1"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxPopupMenu.prototype.popup = function(</td><tdclass=PParameternowrap>x,</td></tr><tr><td></td><tdclass=PParameternowrap>y,</td></tr><tr><td></td><tdclass=PParameternowrap>cell,</td></tr><tr><td></td><tdclass=PParameternowrap>evt</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Shows the popup menu for the given event and cell.</div></div><divclass=CToolTipid="tt2"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.submenuImage</td></tr></table></blockquote>URL of the image to be used for the submenu icon.</div></div><divclass=CToolTipid="tt3"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.zIndex</td></tr></table></blockquote>Specifies the zIndex for the popupmenu and its shadow. </div></div><divclass=CToolTipid="tt4"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.factoryMethod</td></tr></table></blockquote>Function that is used to create the popup menu. </div></div><divclass=CToolTipid="tt5"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.useLeftButtonForPopup</td></tr></table></blockquote>Specifies if popupmenus should be activated by clicking the left mouse button. </div></div><divclass=CToolTipid="tt6"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.enabled</td></tr></table></blockquote>Specifies if events are handled. </div></div><divclass=CToolTipid="tt7"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.itemCount</td></tr></table></blockquote>Contains the number of times addItem has been called for a new menu.</div></div><divclass=CToolTipid="tt8"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxPopupMenu.prototype.addItem = function(</td><tdclass=PParameternowrap>title,</td></tr><tr><td></td><tdclass=PParameternowrap>image,</td></tr><tr><td></td><tdclass=PParameternowrap>funct,</td></tr><tr><td></td><tdclass=PParameternowrap>parent,</td></tr><tr><td></td><tdclass=PParameternowrap>iconCls,</td></tr><tr><td></td><tdclass=PParameternowrap>enabled</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Adds the given item to the given parent item. </div></div><divclass=CToolTipid="tt9"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.autoExpand</td></tr></table></blockquote>Specifies if submenus should be expanded on mouseover. </div></div><divclass=CToolTipid="tt10"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.smartSeparators</td></tr></table></blockquote>Specifies if separators should only be added if a menu item follows them. </div></div><divclass=CToolTipid="tt11"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.labels</td></tr></table></blockquote>Specifies if any labels should be visible. </div></div><divclass=CToolTipid="tt12"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxPopupMenu.prototype.init = function()</td></tr></table></blockquote>Initializes the shapes required for