Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] TreeView and context menu

Expand Messages
  • Nige White
    Just trigger the ContextMenu on the Tree id to use my method: myContextMenu = new YAHOO.widget.ContextMenu( contextMenu , {trigger:myTreeId}); ...
    Message 1 of 5 , Jun 30, 2006
    View Source
    • 0 Attachment
      Just trigger the ContextMenu on the Tree id to use my method:

      myContextMenu = new YAHOO.widget.ContextMenu("contextMenu",
      {trigger:myTreeId});


      Gabriele Farina wrote:

      > How should I structure the hanlder to acces directly the node? I defined
      > an handler for every tree node, but is does not seems to me a good
      > solution.
      >
      > I'd likle to reproduce this behaviour: first of all I pregenerate the
      > context menu using custom markup. Then I intercept all the oncontextmenu
      > events that will be raised from the node into the tree. Based on the
      > node I enable/disable some menu items and I add aditional children to a
      > particular menu item.
      >
      > Gabriele
      >
      >
      > _____________________________________________________________________
      > This message has been checked for all known viruses. Virus scanning
      > powered by Messagelabs http://www.messagelabs.com For more information
      > e-mail : hostmaster@...



      _____________________________________________________________________
      This message has been checked for all known viruses. Virus scanning
      powered by Messagelabs http://www.messagelabs.com For more information
      e-mail : hostmaster@...
    Your message has been successfully submitted and would be delivered to recipients shortly.