📄 ext.data.node.html.svn-base
字号:
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Node-appendChild"></a>
<b>appendChild</b>( <code>Node/Array node</code> ) : Node <div class="mdesc">
<div class="short">Insert node(s) as the last child node of this node.</div>
<div class="long">
Insert node(s) as the last child node of this node. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>node</code> : Node/Array<div class="sub-desc">The node or Array of nodes to append</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Node</code><div class="sub-desc">The appended node if single append, or null if an array was passed</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">Node</td>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Node-bubble"></a>
<b>bubble</b>( <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Array args</code>]</span> ) : void <div class="mdesc">
<div class="short">Bubbles up the tree from this node, calling the specified function with each node. The scope (this) offunction call ...</div>
<div class="long">
Bubbles up the tree from this node, calling the specified function with each node. The scope (<i>this</i>) offunction call will be the scope provided or the current node. The arguments to the functionwill be the args provided or the current node. If the function returns false at any point,the bubble is stopped. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>fn</code> : Function<div class="sub-desc">The function to call</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to current node)</div></li><li><code>args</code> : Array<div class="sub-desc">(optional) The args to call the function with (default to passing the current node)</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">Node</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Node-cascade"></a>
<b>cascade</b>( <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Array args</code>]</span> ) : void <div class="mdesc">
<div class="short">Cascades down the tree from this node, calling the specified function with each node. The scope (this) offunction ca...</div>
<div class="long">
Cascades down the tree from this node, calling the specified function with each node. The scope (<i>this</i>) offunction call will be the scope provided or the current node. The arguments to the functionwill be the args provided or the current node. If the function returns false at any point,the cascade is stopped on that branch. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>fn</code> : Function<div class="sub-desc">The function to call</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to current node)</div></li><li><code>args</code> : Array<div class="sub-desc">(optional) The args to call the function with (default to passing the current node)</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">Node</td>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Node-contains"></a>
<b>contains</b>( <code>Node node</code> ) : Boolean <div class="mdesc">
<div class="short">Returns true if this node is an ancestor (at any point) of the passed node.</div>
<div class="long">
Returns true if this node is an ancestor (at any point) of the passed node. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>node</code> : Node<div class="sub-desc"></div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Boolean</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">Node</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Node-eachChild"></a>
<b>eachChild</b>( <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Array args</code>]</span> ) : void <div class="mdesc">
<div class="short">Interates the child nodes of this node, calling the specified function with each node. The scope (this) offunction c...</div>
<div class="long">
Interates the child nodes of this node, calling the specified function with each node. The scope (<i>this</i>) offunction call will be the scope provided or the current node. The arguments to the functionwill be the args provided or the current node. If the function returns false at any point,the iteration stops. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>fn</code> : Function<div class="sub-desc">The function to call</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to current node)</div></li><li><code>args</code> : Array<div class="sub-desc">(optional) The args to call the function with (default to passing the current node)</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">Node</td>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Node-findChild"></a>
<b>findChild</b>( <code>String attribute</code>, <code>Mixed value</code> ) : Node <div class="mdesc">
<div class="short">Finds the first child that has the attribute with the specified value.</div>
<div class="long">
Finds the first child that has the attribute with the specified value. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>attribute</code> : String<div class="sub-desc">The attribute name</div></li><li><code>value</code> : Mixed<div class="sub-desc">The value to search for</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Node</code><div class="sub-desc">The found child or null if none was found</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">Node</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Node-findChildBy"></a>
<b>findChildBy</b>( <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : Node <div class="mdesc">
<div class="short">Finds the first child by a custom function. The child matches if the function passedreturns true.</div>
<div class="long">
Finds the first child by a custom function. The child matches if the function passedreturns true. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>fn</code> : Function<div class="sub-desc"></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional)</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Node</code><div class="sub-desc">The found child or null if none was found</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">Node</td>
</tr>
<tr class="method-row inherited expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Node-fireEvent"></a>
<b>fireEvent</b>( <code>String eventName</code>, <code>Object... args</code> ) : Boolean <div class="mdesc">
<div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
<div class="long">
Fires the specified event with the passed parameters (minus the event name). <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>eventName</code> : String<div class="sub-desc"></div></li><li><code>args</code> : Object...<div class="sub-desc">Variable number of parameters are passed to handlers</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Node-getDepth"></a>
<b>getDepth</b>() : Number <div class="mdesc">
<div class="short">Returns depth of this node (the root node has a depth of 0)</div>
<div class="long">
Returns depth of this node (the root node has a depth of 0) <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li>None.</li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Number</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">Node</td>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Node-getOwnerTree"></a>
<b>getOwnerTree</b>() : Tree <div class="mdesc">
<div class="short">Returns the tree this node is in.</div>
<div class="long">
Returns the tree this node is in. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li>None.</li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Tree</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">Node</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Node-getPath"></a>
<b>getPath</b>( <span class="optional" title="Optional">[<code>String attr</code>]</span> ) : String <div class="mdesc">
<div class="short">Returns the path for this node. The path can be used to expand or select this node programmatically.</div>
<div class="long">
Returns the path for this node. The path can be used to expand or select this node programmatically. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>attr</code> : String<div class="sub-desc">(optional) The attr to use for the path (defaults to the node's id)</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>String</code><div class="sub-desc">The path</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">Node</td>
</tr>
<tr class="method-row inherited expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Node-hasListener"></a>
<b>hasListener</b>( <code>String eventName</code> ) : Boolean <div class="mdesc">
<div class="short">Checks to see if this object has any listeners for a specified event</div>
<div class="long">
Checks to see if this object has any listeners for a specified event <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>
</ul>
</div>
</div>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -