webgui/www/extras/yui/docs/YAHOO.widget.TextNode.html
JT Smith cfd09a5cb6 upgraded to yui 0.12.0
upgraded to yui-ext 0.33 rc2
2006-11-28 02:23:34 +00:00

432 lines
23 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>API: treeview YAHOO.widget.TextNode (YUI Library)</title>
<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css">
<link rel="stylesheet" type="text/css" href="assets/api.css">
</head>
<body id="yahoo-com">
<div id="doc3" class="yui-t2">
<div id="hd">
<h1>Yahoo! UI Library</h1>
<h3>TreeView Widget&nbsp;</h3>
<p>
<a href="./index.html">Yahoo! UI Library</a>
&gt; <a href="./module_treeview.html">treeview</a>
&gt; YAHOO.widget.TextNode
</p>
</div>
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<h2>
Class <b>YAHOO.widget.TextNode</b>
<span class="extends">
- extends <a href="YAHOO.widget.Node.html">YAHOO.widget.Node</a>
</span>
<span class="extends">
</span>
</code>
</h2>
<!-- class tree goes here -->
<dl class="subclasses">
<dt>Known Subclasses:</dd>
<dd>
<a href="YAHOO.widget.MenuNode.html">YAHOO.widget.MenuNode</a>
</dd>
</dl>
<div class="summary description">
The default node presentation. The first parameter should be
either a string that will be used as the node's label, or an object
that has a string propery called label. By default, the clicking the
label will toggle the expanded/collapsed state of the node. By
changing the href property of the instance, this behavior can be
changed so that the label will go to the specified href.
</div>
<div class="section constructor details">
<h3><a name="constructor_detail">Constructor</a></h3>
<div class="content">
<div class="detail">
<strong>YAHOO.widget.TextNode</strong>
<code>
(
oData
,
oParent
,
expanded
)
</code>
<div class="description">
<dl>
<dt>Parameters:</dt>
<dd>
<code>oData
&lt;object&gt;
</code>
a string or object containing the data that will
be used to render this node
</dd>
<dd>
<code>oParent
&lt;YAHOO.widget.Node&gt;
</code>
this node's parent node
</dd>
<dd>
<code>expanded
&lt;boolean&gt;
</code>
the initial expanded/collapsed state
</dd>
</dl>
</div>
</div>
</div>
</div>
<div class="section field details">
<h3><a name="field_detail">Properties</a></h3>
<div class="content">
<h4><a name="label">label</a>
<code>- string</code>
</h4>
<div class="detail">
<div class="description">
The text for the label. It is assumed that the oData parameter will
either be a string that will be used as the label, or an object that
has a property called "label" that we will use.
</div>
</div>
<hr />
<h4><a name="labelElId">labelElId</a>
<code>- string</code>
</h4>
<div class="detail">
<div class="description">
The derived element id of the label for this node
</div>
</div>
<hr />
<h4><a name="labelStyle">labelStyle</a>
<code>- string</code>
</h4>
<div class="detail">
<div class="description">
The CSS class for the label href. Defaults to ygtvlabel, but can be
overridden to provide a custom presentation for a specific node.
</div>
</div>
<hr />
</div>
</div>
<div class="section field inheritance">
<h4>Properties inherited from <a href="YAHOO.widget.Node.html">YAHOO.widget.Node</a>:</h4>
<div class="content">
<code>
<a href="YAHOO.widget.Node.html#_dynLoad">_dynLoad</a>,
<a href="YAHOO.widget.Node.html#_type">_type</a>,
<a href="YAHOO.widget.Node.html#children">children</a>,
<a href="YAHOO.widget.Node.html#childrenRendered">childrenRendered</a>,
<a href="YAHOO.widget.Node.html#data">data</a>,
<a href="YAHOO.widget.Node.html#dataLoader">dataLoader</a>,
<a href="YAHOO.widget.Node.html#depth">depth</a>,
<a href="YAHOO.widget.Node.html#dynamicLoadComplete">dynamicLoadComplete</a>,
<a href="YAHOO.widget.Node.html#expanded">expanded</a>,
<a href="YAHOO.widget.Node.html#hasIcon">hasIcon</a>,
<a href="YAHOO.widget.Node.html#href">href</a>,
<a href="YAHOO.widget.Node.html#iconMode">iconMode</a>,
<a href="YAHOO.widget.Node.html#index">index</a>,
<a href="YAHOO.widget.Node.html#isLoading">isLoading</a>,
<a href="YAHOO.widget.Node.html#multiExpand">multiExpand</a>,
<a href="YAHOO.widget.Node.html#nextSibling">nextSibling</a>,
<a href="YAHOO.widget.Node.html#parent">parent</a>,
<a href="YAHOO.widget.Node.html#previousSibling">previousSibling</a>,
<a href="YAHOO.widget.Node.html#renderHidden">renderHidden</a>,
<a href="YAHOO.widget.Node.html#target">target</a>,
<a href="YAHOO.widget.Node.html#tree">tree</a>
</code>
</div>
</div>
<div class="section method details">
<h3><a name="methodDetails">Methods</a></h3>
<div class="content">
<h4>
<a name="getLabelEl">getLabelEl</a></h4>
<div class="detail">
<code>
object
<strong>getLabelEl</strong>
(
)
</code>
<div class="description">
Returns the label element
</div>
<div class="description">
<dl>
<dt>Returns:
<code>
object
</code></dt>
<dd>the element</dd>
</dl>
</div>
</div>
<hr />
<h4>
<a name="onLabelClick">onLabelClick</a></h4>
<div class="detail">
<code>
void
<strong>onLabelClick</strong>
(
me
)
</code>
<div class="description">
Executed when the label is clicked. Fires the labelClick custom event.
</div>
<div class="description">
<dl>
<dt>Parameters:</dt>
<dd>
<code>me &lt;Node&gt;</code>
this node
</dd>
</dl>
<dl>
<dt>Returns:
<code>
void
</code></dt>
<dd>false to cancel the anchor click</dd>
</dl>
</div>
</div>
<hr />
</div>
</div>
<div class="section field inheritance">
<h4>Methods inherited from <a href="YAHOO.widget.Node.html">YAHOO.widget.Node</a>:</h4>
<div class="content">
<code>
<a href="YAHOO.widget.Node.html#appendChild">appendChild</a>,
<a href="YAHOO.widget.Node.html#appendTo">appendTo</a>,
<a href="YAHOO.widget.Node.html#applyParent">applyParent</a>,
<a href="YAHOO.widget.Node.html#collapse
toggle style.">collapse
toggle style.</a>,
<a href="YAHOO.widget.Node.html#collapseAll">collapseAll</a>,
<a href="YAHOO.widget.Node.html#completeRender">completeRender</a>,
<a href="YAHOO.widget.Node.html#expand">expand</a>,
<a href="YAHOO.widget.Node.html#expandAll">expandAll</a>,
<a href="YAHOO.widget.Node.html#getAncestor">getAncestor</a>,
<a href="YAHOO.widget.Node.html#getChildrenEl">getChildrenEl</a>,
<a href="YAHOO.widget.Node.html#getChildrenElId">getChildrenElId</a>,
<a href="YAHOO.widget.Node.html#getChildrenHtml">getChildrenHtml</a>,
<a href="YAHOO.widget.Node.html#getDepthStyle">getDepthStyle</a>,
<a href="YAHOO.widget.Node.html#getEl">getEl</a>,
<a href="YAHOO.widget.Node.html#getElId">getElId</a>,
<a href="YAHOO.widget.Node.html#getHoverStyle">getHoverStyle</a>,
<a href="YAHOO.widget.Node.html#getHtml">getHtml</a>,
<a href="YAHOO.widget.Node.html#getIconMode">getIconMode</a>,
<a href="YAHOO.widget.Node.html#getNodeHtml">getNodeHtml</a>,
<a href="YAHOO.widget.Node.html#getSiblings">getSiblings</a>,
<a href="YAHOO.widget.Node.html#getStyle">getStyle</a>,
<a href="YAHOO.widget.Node.html#getToggleEl">getToggleEl</a>,
<a href="YAHOO.widget.Node.html#getToggleElId">getToggleElId</a>,
<a href="YAHOO.widget.Node.html#getToggleLink">getToggleLink</a>,
<a href="YAHOO.widget.Node.html#hasChildren">hasChildren</a>,
<a href="YAHOO.widget.Node.html#hideChildren">hideChildren</a>,
<a href="YAHOO.widget.Node.html#init">init</a>,
<a href="YAHOO.widget.Node.html#insertAfter">insertAfter</a>,
<a href="YAHOO.widget.Node.html#insertBefore">insertBefore</a>,
<a href="YAHOO.widget.Node.html#isChildOf">isChildOf</a>,
<a href="YAHOO.widget.Node.html#isDynamic">isDynamic</a>,
<a href="YAHOO.widget.Node.html#isRoot">isRoot</a>,
<a href="YAHOO.widget.Node.html#loadComplete">loadComplete</a>,
<a href="YAHOO.widget.Node.html#refresh">refresh</a>,
<a href="YAHOO.widget.Node.html#renderChildren">renderChildren</a>,
<a href="YAHOO.widget.Node.html#setDynamicLoad">setDynamicLoad</a>,
<a href="YAHOO.widget.Node.html#showChildren">showChildren</a>,
<a href="YAHOO.widget.Node.html#toggle">toggle</a>,
<a href="YAHOO.widget.Node.html#toString">toString</a>
</code>
</div>
</div>
<div class="section field inheritance">
<h4>Events inherited from <a href="YAHOO.widget.Node.html">YAHOO.widget.Node</a>:</h4>
<div class="content">
<code>
<a href="YAHOO.widget.Node.html#parentChange">parentChange</a>
</code>
</div>
</div>
</div>
</div>
<div class="yui-b">
<div class="nav">
<div class="module">
<h4>Modules</h4>
<ul class="content">
<li><a href="module_animation.html">animation</a></li>
<li><a href="module_autocomplete.html">autocomplete</a></li>
<li><a href="module_calendar.html">calendar</a></li>
<li><a href="module_connection.html">connection</a></li>
<li><a href="module_container.html">container</a></li>
<li><a href="module_dom.html">dom</a></li>
<li><a href="module_dragdrop.html">dragdrop</a></li>
<li><a href="module_event.html">event</a></li>
<li><a href="module_logger.html">logger</a></li>
<li><a href="module_menu.html">menu</a></li>
<li><a href="module_slider.html">slider</a></li>
<li><a href="module_tabview.html">tabview</a></li>
<li><a href="module_treeview.html">treeview</a></li>
<li><a href="module_yahoo.html">yahoo</a></li>
</ul>
</div>
<div class="module">
<h4>Classes</h4>
<ul class="content">
<li><a href="YAHOO.widget.HTMLNode.html">YAHOO.widget.HTMLNode</a></li>
<li><a href="YAHOO.widget.MenuNode.html">YAHOO.widget.MenuNode</a></li>
<li><a href="YAHOO.widget.Node.html">YAHOO.widget.Node</a></li>
<li><a href="YAHOO.widget.RootNode.html">YAHOO.widget.RootNode</a></li>
<li><a href="YAHOO.widget.TextNode.html">YAHOO.widget.TextNode</a></li>
<li><a href="YAHOO.widget.TreeView.html">YAHOO.widget.TreeView</a></li>
<li><a href="YAHOO.widget.TVAnim.html">YAHOO.widget.TVAnim</a></li>
<li><a href="YAHOO.widget.TVFadeIn.html">YAHOO.widget.TVFadeIn</a></li>
<li><a href="YAHOO.widget.TVFadeOut.html">YAHOO.widget.TVFadeOut</a></li>
</ul>
</div>
<div class="module">
<h4>Files</h4>
<ul class="content">
<li><a href="HTMLNode.js.html">HTMLNode.js</a></li>
<li><a href="MenuNode.js.html">MenuNode.js</a></li>
<li><a href="Node.js.html">Node.js</a></li>
<li><a href="RootNode.js.html">RootNode.js</a></li>
<li><a href="TextNode.js.html">TextNode.js</a></li>
<li><a href="TreeView.js.html">TreeView.js</a></li>
<li><a href="TVAnim.js.html">TVAnim.js</a></li>
<li><a href="TVFadeIn.js.html">TVFadeIn.js</a></li>
<li><a href="TVFadeOut.js.html">TVFadeOut.js</a></li>
</ul>
</div>
<div class="module">
<h4>Properties</h4>
<ul class="content">
<li><a href="#label">label</a>
<!--<code>&lt;string&gt;</code>-->
</li>
<li><a href="#labelElId">labelElId</a>
<!--<code>&lt;string&gt;</code>-->
</li>
<li><a href="#labelStyle">labelStyle</a>
<!--<code>&lt;string&gt;</code>-->
</li>
</ul>
</div>
<div class="module">
<h4>Methods</h4>
<ul class="content">
<li><!--<code>object</code>-->
<a href="#getLabelEl">getLabelEl</a>
</li>
<li><!--<code>void</code>-->
<a href="#onLabelClick">onLabelClick</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div id="ft">
<hr />
Copyright &copy; 2006 Yahoo! Inc. All rights reserved.
</div>
</div>
</body>
</html>