Ext.tree.TreeSorter.html
5.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<div class="body-wrap">
<div class="top-tools">
<a class="inner-link" href="#Ext.tree.TreeSorter-props"><img src="../resources/images/default/s_wev8.gif" class="item-icon icon-prop">Properties</a>
<a class="inner-link" href="#Ext.tree.TreeSorter-methods"><img src="../resources/images/default/s_wev8.gif" class="item-icon icon-method">Methods</a>
<a class="inner-link" href="#Ext.tree.TreeSorter-events"><img src="../resources/images/default/s_wev8.gif" class="item-icon icon-event">Events</a>
<a class="inner-link" href="#Ext.tree.TreeSorter-configs"><img src="../resources/images/default/s_wev8.gif" class="item-icon icon-config">Config Options</a>
<a class="bookmark" href="../docs/?class=Ext.tree.TreeSorter"><img src="../resources/images/default/s_wev8.gif" class="item-icon icon-fav">Direct Link</a>
</div>
<h1>Class Ext.tree.TreeSorter</h1>
<table cellspacing="0">
<tr><td class="label">Package:</td><td class="hd-info">Ext.tree</td></tr>
<tr><td class="label">Defined In:</td><td class="hd-info"><a href="../source/widgets/tree/TreeSorter_wev8.js" target="_blank">TreeSorter_wev8.js</a></td></tr>
<tr><td class="label">Class:</td><td class="hd-info">TreeSorter</td></tr>
<tr><td class="label">Extends:</td><td class="hd-info">Object</td></tr>
</table>
<div class="description">
Provides sorting of nodes in a TreePanel </div>
<div class="hr"></div>
<a id="Ext.tree.TreeSorter-configs"></a>
<h2>Config Options</h2>
<table cellspacing="0" class="member-table">
<tr>
<th class="sig-header" colspan="2">Config Options</th>
<th class="msource-header">Defined By</th>
</tr>
<tr class="config-row">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.tree.TreeSorter-caseSensitive"></a>
<b>caseSensitive</b> : Boolean <div class="mdesc">
true for case sensitive sort (defaults to false) </div>
</td>
<td class="msource">TreeSorter</td>
</tr>
<tr class="config-row alt">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.tree.TreeSorter-dir"></a>
<b>dir</b> : String <div class="mdesc">
The direction to sort (asc or desc) (defaults to asc) </div>
</td>
<td class="msource">TreeSorter</td>
</tr>
<tr class="config-row">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.tree.TreeSorter-folderSort"></a>
<b>folderSort</b> : Boolean <div class="mdesc">
True to sort leaf nodes under non leaf nodes </div>
</td>
<td class="msource">TreeSorter</td>
</tr>
<tr class="config-row alt">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.tree.TreeSorter-leafAttr"></a>
<b>leafAttr</b> : String <div class="mdesc">
The attribute used to determine leaf nodes in folder sort (defaults to "leaf") </div>
</td>
<td class="msource">TreeSorter</td>
</tr>
<tr class="config-row">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.tree.TreeSorter-property"></a>
<b>property</b> : String <div class="mdesc">
The named attribute on the node to sort by (defaults to text) </div>
</td>
<td class="msource">TreeSorter</td>
</tr>
<tr class="config-row alt">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.tree.TreeSorter-sortType"></a>
<b>sortType</b> : Function <div class="mdesc">
A custom "casting" function used to convert node values before sorting </div>
</td>
<td class="msource">TreeSorter</td>
</tr>
</table>
<a id="Ext.tree.TreeSorter-props"></a>
<h2>Public Properties</h2>
<div class="no-members">This class has no public properties.</div> <a id="Ext.tree.TreeSorter-methods"></a>
<h2>Public Methods</h2>
<table cellspacing="0" class="member-table">
<tr>
<th class="sig-header" colspan="2">Method</th>
<th class="msource-header">Defined By</th>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.tree.TreeSorter-TreeSorter"></a>
<b>TreeSorter</b>( <code>TreePanel tree</code>, <code>Object config</code> ) <div class="mdesc">
<div class="short"></div>
<div class="long">
<div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>tree</code> : TreePanel<div class="sub-desc"></div></li><li><code>config</code> : Object<div class="sub-desc"></div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code></code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">TreeSorter</td>
</tr>
</table>
<a id="Ext.tree.TreeSorter-events"></a>
<h2>Public Events</h2>
<div class="no-members">This class has no public events.</div>
</div>