YAHOO.widget.HTMLNode
(
oData
,
oParent
,
expanded
,
hasIcon
)
- Parameters:
-
oData <object>
a string or object containing the data that will be used to render this node. Providing a string is the same as providing an object with a single property named html. All values in the oData will be used to set equally named properties in the node as long as the node does have such properties, they are not undefined, private or functions. 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 retrieve a node by one of the attributes. -
oParent <YAHOO.widget.Node>
this node's parent node -
expanded <boolean>
the initial expanded/collapsed state (deprecated; use oData.expanded) -
hasIcon <boolean>
specifies whether or not leaf nodes should be rendered with or without a horizontal line and/or toggle icon. If the icon is not displayed, the content fills the space it would have occupied. This option operates independently of the leaf node presentation logic for dynamic nodes. (deprecated; use oData.hasIcon)