You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
12 KiB

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. This file is part of Ext JS 3.4
  3. Copyright (c) 2011-2013 Sencha Inc
  4. Contact: http://www.sencha.com/contact
  5. GNU General Public License Usage
  6. This file may be used under the terms of the GNU General Public License version 3.0 as
  7. published by the Free Software Foundation and appearing in the file LICENSE included in the
  8. packaging of this file.
  9. Please review the following information to ensure the GNU General Public License version 3.0
  10. requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  11. If you are unsure which license is appropriate for your use, please contact the sales department
  12. at http://www.sencha.com/contact.
  13. Build date: 2013-04-03 15:07:25
  14. */
  15. Ext.data.JsonP.Ext_tree_TreeSorter({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":[],"extends":null,"uses":[],"html":"<div><pre class=\"hierarchy\"><h4>Files</h4><div class='dependency'><a href='source/TreeSorter.html#Ext-tree-TreeSorter' target='_blank'>TreeSorter.js</a></div></pre><div class='doc-contents'><p>Provides sorting of nodes in a <a href=\"#!/api/Ext.tree.TreePanel\" rel=\"Ext.tree.TreePanel\" class=\"docClass\">Ext.tree.TreePanel</a>. The TreeSorter automatically monitors events on the\nassociated TreePanel that might affect the tree's sort order (beforechildrenrendered, append, insert and textchange).\nExample usage:<br /></p>\n\n<pre><code>new <a href=\"#!/api/Ext.tree.TreeSorter\" rel=\"Ext.tree.TreeSorter\" class=\"docClass\">Ext.tree.TreeSorter</a>(myTree, {\n folderSort: true,\n dir: \"desc\",\n sortType: function(value, node) {\n // sort by a custom, typed attribute:\n return parseInt(node.id, 10);\n }\n});\n</code></pre>\n\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-cfg'>Config options</h3><div class='subsection'><div id='cfg-caseSensitive' class='member first-child not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.tree.TreeSorter'>Ext.tree.TreeSorter</span><br/><a href='source/TreeSorter.html#Ext-tree-TreeSorter-cfg-caseSensitive' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.tree.TreeSorter-cfg-caseSensitive' class='name not-expandable'>caseSensitive</a><span> : Boolean</span></div><div class='description'><div class='short'><p>true for case-sensitive sort (defaults to false)</p>\n</div><div class='long'><p>true for case-sensitive sort (defaults to false)</p>\n</div></div></div><div id='cfg-dir' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.tree.TreeSorter'>Ext.tree.TreeSorter</span><br/><a href='source/TreeSorter.html#Ext-tree-TreeSorter-cfg-dir' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.tree.TreeSorter-cfg-dir' class='name not-expandable'>dir</a><span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a></span></div><div class='description'><div class='short'><p>The direction to sort (\"asc\" or \"desc,\" case-insensitive, defaults to \"asc\")</p>\n</div><div class='long'><p>The direction to sort (\"asc\" or \"desc,\" case-insensitive, defaults to \"asc\")</p>\n</div></div></div><div id='cfg-folderSort' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.tree.TreeSorter'>Ext.tree.TreeSorter</span><br/><a href='source/TreeSorter.html#Ext-tree-TreeSorter-cfg-folderSort' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.tree.TreeSorter-cfg-folderSort' class='name not-expandable'>folderSort</a><span> : Boolean</span></div><div class='description'><div class='short'><p>True to sort leaf nodes under non-leaf nodes (defaults to false)</p>\n</div><div class='long'><p>True to sort leaf nodes under non-leaf nodes (defaults to false)</p>\n</div></div></div><div id='cfg-leafAttr' class='member not-inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><span class='defined-in' rel='Ext.tree.TreeSorter'>Ext.tree.TreeSorter</span><br/><a href='source/TreeSorter.html#Ext-tree-TreeSorter-cfg-leafAttr' target='_blank' class='view-source'>view source</a></div><a href='#!/api/Ext.tree.TreeSorter-cfg-leafAttr' class='name not-expandable'>leafAttr</a><span> : <a href=\"#!/api/String\" rel=\"String\" class=\"docClass\">String</a></span></div><div class='description'><div class='short'><p>The attribute used to determine leaf nodes when <a href=\"#!/api/Ext.tree.TreeSorter-cfg-folderSort