YUI recommends YUI 3.

YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.

Yahoo! UI Library

TreeView Widget  2.3.0

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

Show Private Show Protected

Class YAHOO.widget.HTMLNode - extends YAHOO.widget.Node

This implementation takes either a string or object for the oData argument. If is it a string, we will use it for the display of this node (and it can contain any html code). If the parameter is an object, we look for a parameter called "html" that will be used for this node's display.

Constructor

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
oParent <YAHOO.widget.Node> this node's parent node
expanded <boolean> the initial expanded/collapsed state
hasIcon <boolean> specifies whether or not leaf nodes should have an icon

Properties

content - string

The HTML content to use for this node's display

contentElId - string

The generated id that will contain the data passed in by the implementer.

contentStyle - string

The CSS class for the html content container. Defaults to ygtvhtml, but can be overridden to provide a custom presentation for a specific node.

initContent - object

Sets up the node label

Methods

getContentEl

HTMLElement getContentEl ( )
Returns the outer html element for this node's content
Returns: HTMLElement
the element

Events inherited from YAHOO.widget.Node:


Copyright © 2007 Yahoo! Inc. All rights reserved.