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.

39 lines
1.3 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*!
  2. * Ext JS Library 3.3.1
  3. * Copyright(c) 2006-2010 Sencha Inc.
  4. * licensing@sencha.com
  5. * http://www.sencha.com/license
  6. */
  7. (function() {
  8. Ext.override(Ext.list.Column, {
  9. init : function() {
  10. var types = Ext.data.Types,
  11. st = this.sortType;
  12. if(this.type){
  13. if(Ext.isString(this.type)){
  14. this.type = Ext.data.Types[this.type.toUpperCase()] || types.AUTO;
  15. }
  16. }else{
  17. this.type = types.AUTO;
  18. }
  19. // named sortTypes are supported, here we look them up
  20. if(Ext.isString(st)){
  21. this.sortType = Ext.data.SortTypes[st];
  22. }else if(Ext.isEmpty(st)){
  23. this.sortType = this.type.sortType;
  24. }
  25. }
  26. });
  27. Ext.tree.Column = Ext.extend(Ext.list.Column, {});
  28. Ext.tree.NumberColumn = Ext.extend(Ext.list.NumberColumn, {});
  29. Ext.tree.DateColumn = Ext.extend(Ext.list.DateColumn, {});
  30. Ext.tree.BooleanColumn = Ext.extend(Ext.list.BooleanColumn, {});
  31. Ext.reg('tgcolumn', Ext.tree.Column);
  32. Ext.reg('tgnumbercolumn', Ext.tree.NumberColumn);
  33. Ext.reg('tgdatecolumn', Ext.tree.DateColumn);
  34. Ext.reg('tgbooleancolumn', Ext.tree.BooleanColumn);
  35. })();