1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8 <meta name="generator" content="JsDoc Toolkit" />
11 <title>JsDoc Reference - Roo.tree.TreeSorter</title>
14 <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />
15 <link rel="stylesheet" type="text/css" href="../default.css" />
18 <script type="text/javascript" src="../page.js">
25 <body onload="RooDocsPage.onload();">
28 <div class="body-wrap">
30 <!-- ============================== links to methods. ================================= -->
32 <div class="top-tools">
34 <a class="inner-link" href="#Roo.tree.TreeSorter-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.tree.TreeSorter-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.tree.TreeSorter-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.tree.TreeSorter-configs"><img src="resources/s.gif" class="item-icon icon-config">Config Options</a>
38 <a class="bookmark" href="NEED_TO_CREATE_DIRECT_LINK_HREF"><img src="resources/s.gif" class="item-icon icon-fav">Direct Link</a>
43 <!-- ============================== inheritance Block. ================================= -->
45 <!-- ============================== class title / details ============================ -->
48 <h1 class="classTitle">
50 Class Roo.tree.TreeSorter
53 <table cellspacing="0" class="class-summary-table">
55 <tr><td class="label">Package:</td><td class="hd-info">Roo.tree</td></tr>
57 <tr><td class="label">Defined In:</td><td class="hd-info">
59 <a href="./src/Roo_tree_TreeSorter.js.html">Roo/tree/TreeSorter.js</a>.
62 <tr><td class="label">Class:</td><td class="hd-info">TreeSorter</td></tr>
70 <!-- ============================== class summary ========================== -->
71 <div class="description">
72 Provides sorting of nodes in a TreePanel
76 <!-- ============================== Class comment block... ========================== -->
78 <div class="comments">
79 <b>Class Comments / Notes</B> =>
80 <u onclick="parent.CommentDialog.showCommentId = 'Roo.tree.TreeSorter';">[Add Your comment/notes about this class]</u>
82 <iframe frameborder="0" id="comments-Roo.tree" style="border: none;width:100%;"
83 src="/blog.php/GtkDjsComments/Roo.tree.TreeSorter.html"></iframe>
88 <!-- ============================== config options ========================== -->
93 <div class="hr"></div>
94 <a id="Roo.tree.TreeSorter-configs"></a>
100 <table cellspacing="0" class="member-table">
101 <caption>Config Options (Usually are also Properties)</caption>
105 <th class="sig-header" colspan="2">Options</th>
107 <th class="msource-header">Defined By</th>
114 <tr class="config-row expandable config-row-alt0 notInherited">
115 <td class="micon"><a class="exi" href="#expand"> </a></td>
118 <a id="Roo.tree.TreeSorter-cfg-caseSensitive" name=".caseSensitive"></a>
119 <div class="fixedFont">
120 <b class="itemname">caseSensitive</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
126 <div class="short">true for case sensitive sort (defaults to false)</div>
131 true for case sensitive sort (defaults to false)
147 <tr class="config-row expandable config-row-alt1 notInherited">
148 <td class="micon"><a class="exi" href="#expand"> </a></td>
151 <a id="Roo.tree.TreeSorter-cfg-dir" name=".dir"></a>
152 <div class="fixedFont">
153 <b class="itemname">dir</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
159 <div class="short">The direction to sort (asc or desc) (defaults to asc)</div>
164 The direction to sort (asc or desc) (defaults to asc)
180 <tr class="config-row expandable config-row-alt0 notInherited">
181 <td class="micon"><a class="exi" href="#expand"> </a></td>
184 <a id="Roo.tree.TreeSorter-cfg-folderSort" name=".folderSort"></a>
185 <div class="fixedFont">
186 <b class="itemname">folderSort</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
192 <div class="short">True to sort leaf nodes under non leaf nodes</div>
197 True to sort leaf nodes under non leaf nodes
213 <tr class="config-row expandable config-row-alt1 notInherited">
214 <td class="micon"><a class="exi" href="#expand"> </a></td>
217 <a id="Roo.tree.TreeSorter-cfg-leafAttr" name=".leafAttr"></a>
218 <div class="fixedFont">
219 <b class="itemname">leafAttr</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
225 <div class="short">The attribute used to determine leaf nodes in folder sort (defaults to "leaf")</div>
230 The attribute used to determine leaf nodes in folder sort (defaults to "leaf")
246 <tr class="config-row expandable config-row-alt0 notInherited">
247 <td class="micon"><a class="exi" href="#expand"> </a></td>
250 <a id="Roo.tree.TreeSorter-cfg-property" name=".property"></a>
251 <div class="fixedFont">
252 <b class="itemname">property</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
258 <div class="short">The named attribute on the node to sort by (defaults to text)</div>
263 The named attribute on the node to sort by (defaults to text)
279 <tr class="config-row expandable config-row-alt1 notInherited">
280 <td class="micon"><a class="exi" href="#expand"> </a></td>
283 <a id="Roo.tree.TreeSorter-cfg-sortType" name=".sortType"></a>
284 <div class="fixedFont">
285 <b class="itemname">sortType</b> : <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a>
291 <div class="short">A custom "casting" function used to convert node values before sorting</div>
296 A custom "casting" function used to convert node values before sorting
322 <!-- ============================== public properties ==================== -->
326 <a id="Roo.tree.TreeSorter-props"></a>
332 <table cellspacing="0" class="member-table">
333 <caption class="Empty">Public Properties - Has None</caption>
339 <!-- ============================== methods summary / details ======================== -->
342 <a id="Roo.tree.TreeSorter-methods"></a>
343 <!-- constructor?? -->
350 <!-- then dynamics first -->
357 <table cellspacing="0" class="member-table">
358 <caption>Public Methods</caption>
360 <th class="sig-header" colspan="2">Method</th>
361 <th class="msource-header">Defined By</th>
371 <tr class="method-row config-row-alt0 expandable notInherited">
372 <td class="micon"><a class="exi" href="#expand"> </a></td>
376 <a id="Roo.tree-method-TreeSorter" name=".TreeSorter"></a>
377 <div class="fixedFont">
378 <span class="attributes">new <B>Roo.tree.</B></span><b class="itemname">TreeSorter</b>
380 (TreePanel <B><i>tree</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
388 <div class="short">Create a new Roo.tree.TreeSorter</div>
395 Create a new Roo.tree.TreeSorter
398 <dl class="detailList">
399 <dt class="heading">Parameters:</dt>
402 <span class="fixedFont">TreePanel</span> <b>tree</b>
408 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>config</b>
438 <!-- ============================== events summary / details ======================== -->
441 <a id="Roo.tree.TreeSorter-events"></a>
447 <table cellspacing="0" class="member-table">
448 <caption class="Empty">Events - Has None</caption>
459 <!-- ============================== footer ================================= -->
460 <div class="fineprint" style="clear:both">
462 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Tue Aug 08 2017 12:05:52 GMT+0800 (HKT)
464 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>