X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/f5240829880f87e0cf581c6a296e436fdef0ef80..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/examples/treegrid/tree-grid.js?ds=inline diff --git a/examples/treegrid/tree-grid.js b/examples/treegrid/tree-grid.js deleted file mode 100644 index 1bcb37de..00000000 --- a/examples/treegrid/tree-grid.js +++ /dev/null @@ -1,47 +0,0 @@ -/*! - * Ext JS Library 3.3.0 - * Copyright(c) 2006-2010 Ext JS, Inc. - * licensing@extjs.com - * http://www.extjs.com/license - */ -Ext.onReady(function() { - Ext.QuickTips.init(); - - var tree = new Ext.ux.tree.TreeGrid({ - title: 'Core Team Projects', - width: 500, - height: 300, - renderTo: Ext.getBody(), - enableDD: true, - - columns:[{ - header: 'Task', - dataIndex: 'task', - width: 230 - },{ - header: 'Duration', - width: 100, - dataIndex: 'duration', - align: 'center', - sortType: 'asFloat', - tpl: new Ext.XTemplate('{duration:this.formatHours}', { - formatHours: function(v) { - if(v < 1) { - return Math.round(v * 60) + ' mins'; - } else if (Math.floor(v) !== v) { - var min = v - Math.floor(v); - return Math.floor(v) + 'h ' + Math.round(min * 60) + 'm'; - } else { - return v + ' hour' + (v === 1 ? '' : 's'); - } - } - }) - },{ - header: 'Assigned To', - width: 150, - dataIndex: 'user' - }], - - dataUrl: 'treegrid-data.json' - }); -}); \ No newline at end of file