打印版式

Class Ext.tree.TreeSorter

Package:Ext.tree
Class:TreeSorter
Extends:Object
Defined In:TreeSorter.js
Provides sorting of nodes in a TreePanel

属性   -  方法   -  事件   -  设置选项

公共属性

此类没有公共属性。

公共方法

方法 定义对象
  TreeSorter(TreePanel tree, Object config) TreeSorter

公共事件

此类没有公共事件。

设置选项

设置选项 定义对象
  caseSensitive : Boolean TreeSorter
true for case sensitive sort (defaults to false)
  dir : String TreeSorter
The direction to sort (asc or desc) (defaults to asc)
  folderSort : Boolean TreeSorter
True to sort leaf nodes under non leaf nodes
  leafAttr : String TreeSorter
The attribute used to determine leaf nodes in folder sort (defaults to "leaf")
  property : String TreeSorter
The named attribute on the node to sort by (defaults to text)
  sortType : Function TreeSorter
A custom "casting" function used to convert node values before sorting

构造函数

TreeSorter

public function TreeSorter(TreePanel tree, Object config)
参数:
  • tree : TreePanel
  • config : Object

设置详情

caseSensitive

caseSensitive : Boolean
true for case sensitive sort (defaults to false)
This config option is defined by TreeSorter.

dir

dir : String
The direction to sort (asc or desc) (defaults to asc)
This config option is defined by TreeSorter.

folderSort

folderSort : Boolean
True to sort leaf nodes under non leaf nodes
This config option is defined by TreeSorter.

leafAttr

leafAttr : String
The attribute used to determine leaf nodes in folder sort (defaults to "leaf")
This config option is defined by TreeSorter.

property

property : String
The named attribute on the node to sort by (defaults to text)
This config option is defined by TreeSorter.

sortType

sortType : Function
A custom "casting" function used to convert node values before sorting
This config option is defined by TreeSorter.

Ext - Copyright © 2006-2007 Ext JS, LLC
All rights reserved.