WAML - Web Application Markup Language

WAML - Web Application Markup Language

Posts 1-1 of 1
  • Evgenios Skitsanos
    Evgenios Skitsanos    Group moderator
    The company name is only visible to registered members.
    wa:ContextMenu
    Hello everyone,

    I've figure out some draft version of context menu functionality based on Yui, please have a look:

    <div id="container">right click on me</div>
    <wa:contextMenu id="mnu" bindTo="'container'">
    <wa:contextMenuRow label="Cut"/>
    <wa:contextMenuRow label="Copy"/>
    <wa:contextMenuRow label="Paste"/>
    </wa:contextMenu>

    I've added bindTo="'container'" to bind this context menu to html element, in my case it is <div id="container"/> as you can see. so only with right click on my container menu will pop up.

    if there no bindTo attribute assigned, context menu will bind to document element.