ext.tree.asynctreenode.html.svn-base
来自「PHP 知识管理系统(基于树结构的知识管理系统), 英文原版的PHP源码。」· SVN-BASE 代码 · 共 1,127 行 · 第 1/5 页
SVN-BASE
1,127 行
<em>'mouseover'</em> : { fn: <b>this</b>.onMouseOver, scope: <b>this</b> }, <em>'mouseout'</em> : { fn: <b>this</b>.onMouseOut, scope: <b>this</b> }});</code></pre><p>Or a shorthand syntax:<br><pre><code>foo.on({ <em>'click'</em> : <b>this</b>.onClick, <em>'mouseover'</em> : <b>this</b>.onMouseOver, <em>'mouseout'</em> : <b>this</b>.onMouseOut, scope: <b>this</b>});</code></pre></div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<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 inherited alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.tree.AsyncTreeNode-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"><a ext:cls="Ext.data.Node" ext:member="#appendChild" href="output/Ext.data.Node.html#appendChild">Node</a></td>
</tr>
<tr class="method-row inherited expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.tree.AsyncTreeNode-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"><a ext:cls="Ext.data.Node" ext:member="#bubble" href="output/Ext.data.Node.html#bubble">Node</a></td>
</tr>
<tr class="method-row inherited alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.tree.AsyncTreeNode-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"><a ext:cls="Ext.data.Node" ext:member="#cascade" href="output/Ext.data.Node.html#cascade">Node</a></td>
</tr>
<tr class="method-row inherited expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.tree.AsyncTreeNode-collapse"></a>
<b>collapse</b>( <span class="optional" title="Optional">[<code>Boolean deep</code>]</span>, <span class="optional" title="Optional">[<code>Boolean anim</code>]</span> ) : void <div class="mdesc">
<div class="short">Collapse this node.</div>
<div class="long">
Collapse this node. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>deep</code> : Boolean<div class="sub-desc">(optional) True to collapse all children as well</div></li><li><code>anim</code> : Boolean<div class="sub-desc">(optional) false to cancel the default animation</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource"><a ext:cls="Ext.tree.TreeNode" ext:member="#collapse" href="output/Ext.tree.TreeNode.html#collapse">TreeNode</a></td>
</tr>
<tr class="method-row inherited alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.tree.AsyncTreeNode-collapseChildNodes"></a>
<b>collapseChildNodes</b>( <span class="optional" title="Optional">[<code>Boolean deep</code>]</span> ) : void <div class="mdesc">
<div class="short">Collapse all child nodes</div>
<div class="long">
Collapse all child nodes <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>deep</code> : Boolean<div class="sub-desc">(optional) true if the child nodes should also collapse their child nodes</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource"><a ext:cls="Ext.tree.TreeNode" ext:member="#collapseChildNodes" href="output/Ext.tree.TreeNode.html#collapseChildNodes">TreeNode</a></td>
</tr>
<tr class="method-row inherited expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.tree.AsyncTreeNode-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"><a ext:cls="Ext.data.Node" ext:member="#contains" href="output/Ext.data.Node.html#contains">Node</a></td>
</tr>
<tr class="method-row inherited alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.tree.AsyncTreeNode-disable"></a>
<b>disable</b>() : void <div class="mdesc">
<div class="short">Disables this node</div>
<div class="long">
Disables this node <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li>None.</li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource"><a ext:cls="Ext.tree.TreeNode" ext:member="#disable" href="output/Ext.tree.TreeNode.html#disable">TreeNode</a></td>
</tr>
<tr class="method-row inherited expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.tree.AsyncTreeNode-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"><a ext:cls="Ext.data.Node" ext:member="#eachChild" href="output/Ext.data.Node.html#eachChild">Node</a></td>
</tr>
<tr class="method-row inherited alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.tree.AsyncTreeNode-enable"></a>
<b>enable</b>() : void <div class="mdesc">
<div class="short">Enables this node</div>
<div class="long">
Enables this node <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li>None.</li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource"><a ext:cls="Ext.tree.TreeNode" ext:member="#enable" href="output/Ext.tree.TreeNode.html#enable">TreeNode</a></td>
</tr>
<tr class="method-row inherited expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.tree.AsyncTreeNode-ensureVisible"></a>
<b>ensureVisible</b>() : void <div class="mdesc">
<div class="short">Ensures all parent nodes are expanded, and if necessary, scrollsthe node into view.</div>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?