53 lines
1.8 KiB
JavaScript
53 lines
1.8 KiB
JavaScript
/*
|
|
This file is part of Ext JS 3.4
|
|
|
|
Copyright (c) 2011-2013 Sencha Inc
|
|
|
|
Contact: http://www.sencha.com/contact
|
|
|
|
GNU General Public License Usage
|
|
This file may be used under the terms of the GNU General Public License version 3.0 as
|
|
published by the Free Software Foundation and appearing in the file LICENSE included in the
|
|
packaging of this file.
|
|
|
|
Please review the following information to ensure the GNU General Public License version 3.0
|
|
requirements will be met: http://www.gnu.org/copyleft/gpl.html.
|
|
|
|
If you are unsure which license is appropriate for your use, please contact the sales department
|
|
at http://www.sencha.com/contact.
|
|
|
|
Build date: 2013-04-03 15:07:25
|
|
*/
|
|
(function() {
|
|
Ext.override(Ext.list.Column, {
|
|
init : function() {
|
|
var types = Ext.data.Types,
|
|
st = this.sortType;
|
|
|
|
if(this.type){
|
|
if(Ext.isString(this.type)){
|
|
this.type = Ext.data.Types[this.type.toUpperCase()] || types.AUTO;
|
|
}
|
|
}else{
|
|
this.type = types.AUTO;
|
|
}
|
|
|
|
// named sortTypes are supported, here we look them up
|
|
if(Ext.isString(st)){
|
|
this.sortType = Ext.data.SortTypes[st];
|
|
}else if(Ext.isEmpty(st)){
|
|
this.sortType = this.type.sortType;
|
|
}
|
|
}
|
|
});
|
|
|
|
Ext.tree.Column = Ext.extend(Ext.list.Column, {});
|
|
Ext.tree.NumberColumn = Ext.extend(Ext.list.NumberColumn, {});
|
|
Ext.tree.DateColumn = Ext.extend(Ext.list.DateColumn, {});
|
|
Ext.tree.BooleanColumn = Ext.extend(Ext.list.BooleanColumn, {});
|
|
|
|
Ext.reg('tgcolumn', Ext.tree.Column);
|
|
Ext.reg('tgnumbercolumn', Ext.tree.NumberColumn);
|
|
Ext.reg('tgdatecolumn', Ext.tree.DateColumn);
|
|
Ext.reg('tgbooleancolumn', Ext.tree.BooleanColumn);
|
|
})();
|