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

Re: [ydn-javascript] TreeView - Can TextNode label be made to not expand/contract the branch?

Expand Messages
  • Adam Moore
    ... Replace YAHOO.widget.TextNode with YAHOO.widget.HTMLNode to remove the label click behavior. The following example uses HTMLNode for the custom icon
    Message 1 of 5 , Nov 1, 2007
    • 0 Attachment
      On Wed, Oct 31, 2007 at 11:23:23PM -0000, dcinteractive123 wrote:
      > Hello,
      >
      > I have built a tree similar to the basic example listed here:
      >
      > http://developer.yahoo.com/yui/examples/treeview/default_tree.html
      >
      > I would like to change the behavior so that the only way to expand the
      > tree is to click on the + sign. I basically don't want to label to be
      > clickable. Is this possible?

      Replace YAHOO.widget.TextNode with YAHOO.widget.HTMLNode to remove the
      label click behavior. The following example uses HTMLNode for the
      custom icon presentation:

      http://developer.yahoo.com/yui/examples/treeview/customicons.html

      -Adam
    Your message has been successfully submitted and would be delivered to recipients shortly.