Yahoo! UI Library

TreeView Widget  2.5.1

Yahoo! UI Library > treeview > YAHOO.widget.MenuNode

Show Private Show Protected

Class YAHOO.widget.MenuNode - extends YAHOO.widget.TextNode

A menu-specific implementation that differs from TextNode in that only one sibling can be expanded at a time.

Constructor

YAHOO.widget.MenuNode ( oData , oParent , expanded )
Parameters:
oData <object> a string or object containing the data that will be used to render this node. Valid properties:
label
The text for the node's label
title
The title attribute for the label anchor
title
The title attribute for the label anchor
href
The href for the node's label. By default it is set to expand/collapse the node.
target
The target attribute for the label anchor
style
A CSS class to apply to the label anchor
All other attributes are made available in noderef.data, which can be used to store custom attributes. TreeView.getNode(s)ByProperty can be used to retreive a node by one of the attributes.
oParent <YAHOO.widget.Node> this node's parent node
expanded <boolean> the initial expanded/collapsed state

Properties inherited from YAHOO.widget.TextNode:

Methods inherited from YAHOO.widget.TextNode:

Events inherited from YAHOO.widget.Node:


Copyright © 2007 Yahoo! Inc. All rights reserved.