Revision history [back]

click to hide/show revision 1
initial version

asked 2013-09-12 09:04:52 +0800

jerrylyj gravatar image jerrylyj

about the event of menupopup

请问一下,我打算在menupopup元素的onOpen事件中添加判断,当判断不符合要求时,我想要使用 event.stopPropagation();来终止menupopup的显示。但是,不起作用。 该如何处理呢? code:

<menupopup id="MenuLsbMain" &gt;="" <attribute="" name="onOpen"> if(false) { event.stopPropagation(); } </attribute> <menuitem label="查看" image="../../images/ToolBar/view.png"> </menuitem> </menupopup>

about the event of menupopup

请问一下,我打算在menupopup元素的onOpen事件中添加判断,当判断不符合要求时,我想要使用 event.stopPropagation();来终止menupopup的显示。但是,不起作用。 该如何处理呢? code:

 <menupopup id="MenuLsbMain" &gt;="" <attribute="" >
             <attribute name="onOpen">
                if(false)
                {
                    event.stopPropagation();
                }
             </attribute>
             <menuitem  label="查看" image="../../images/ToolBar/view.png">           </menuitem>          </menupopup></menupopup>

but the menupopup always show

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More