ext.tree.treenode.html.svn-base

来自「PHP 知识管理系统(基于树结构的知识管理系统), 英文原版的PHP源码。」· SVN-BASE 代码 · 共 1,188 行 · 第 1/5 页

SVN-BASE
1,188
字号
                        </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">&nbsp;</a></td>
        <td class="sig">
        <a id="Ext.tree.TreeNode-bubble"></a>
            <b>bubble</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Array args</code>]</span>&nbsp;) : 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">&nbsp;</a></td>
        <td class="sig">
        <a id="Ext.tree.TreeNode-cascade"></a>
            <b>cascade</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Array args</code>]</span>&nbsp;) : 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 expandable">
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
        <td class="sig">
        <a id="Ext.tree.TreeNode-collapse"></a>
            <b>collapse</b>(&nbsp;<span class="optional" title="Optional">[<code>Boolean deep</code>]</span>, <span class="optional" title="Optional">[<code>Boolean anim</code>]</span>&nbsp;) : 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">TreeNode</td>
    </tr>
        <tr class="method-row alt expandable">
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
        <td class="sig">
        <a id="Ext.tree.TreeNode-collapseChildNodes"></a>
            <b>collapseChildNodes</b>(&nbsp;<span class="optional" title="Optional">[<code>Boolean deep</code>]</span>&nbsp;) : 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">TreeNode</td>
    </tr>
        <tr class="method-row inherited expandable">
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
        <td class="sig">
        <a id="Ext.tree.TreeNode-contains"></a>
            <b>contains</b>(&nbsp;<code>Node node</code>&nbsp;) : 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 alt expandable">
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
        <td class="sig">
        <a id="Ext.tree.TreeNode-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">TreeNode</td>
    </tr>
        <tr class="method-row inherited expandable">
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
        <td class="sig">
        <a id="Ext.tree.TreeNode-eachChild"></a>
            <b>eachChild</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Array args</code>]</span>&nbsp;) : 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 alt expandable">
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
        <td class="sig">
        <a id="Ext.tree.TreeNode-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">TreeNode</td>
    </tr>
        <tr class="method-row expandable">
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
        <td class="sig">
        <a id="Ext.tree.TreeNode-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>
            <div class="long">
                Ensures all parent nodes are expanded, and if necessary, scrollsthe node into view.    <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">TreeNode</td>
    </tr>
        <tr class="method-row alt expandable">
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
        <td class="sig">
        <a id="Ext.tree.TreeNode-expand"></a>
            <b>expand</b>(&nbsp;<span class="optional" title="Optional">[<code>Boolean deep</code>]</span>, <span class="optional" title="Optional">[<code>Boolean anim</code>]</span>, <span class="optional" title="Optional">[<code>Function callback</code>]</span>&nbsp;) : void            <div class="mdesc">
                        <div class="short">Expand this node.</div>
            <div class="long">
                Expand this node.    <div class="mdetail-params">
        <strong>Parameters:</strong>
        <ul><li><code>deep</code> : Boolean<div class="sub-desc">(optional) True to expand all children as well</div></li><li><code>anim</code> : Boolean<div class="sub-desc">(optional) false to cancel the default animation</div></li><li><code>callback</code> : Function<div class="sub-desc">(optional) A callback to be called whenexpanding this node completes (does not wait for deep expand to complete).Called with 1 parameter, this node.</div></li>        </ul>
        <strong>Returns:</strong>
        <ul>
            <li><code>void</code></li>
        </ul>
    </div>
                </div>
                        </div>
        </td>
        <td class="msource">TreeNode</td>
    </tr>
        <tr class="method-row expandable">
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
        <td class="sig">
        <a id="Ext.tree.TreeNode-expandChildNodes"></a>
            <b>expandChildNodes</b>(&nbsp;<span class="optional" title="Optional">[<code>Boolean deep</code>]</span>&nbsp;) : void            <div class="mdesc">
                        <div class="short">Expand all child nodes</div>
            <div class="long">
                Expand 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 expand their child nodes</div></li>        </ul>
        <strong>Returns:</strong>
        <ul>
            <li><code>void</code></li>
        </ul>
    </div>
                </div>
                        </div>
        </td>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?