Upgrade to ExtJS 3.1.0 - Released 12/16/2009
[extjs.git] / examples / ux / treegrid / TreeGridLoader.js
diff --git a/examples/ux/treegrid/TreeGridLoader.js b/examples/ux/treegrid/TreeGridLoader.js
new file mode 100644 (file)
index 0000000..8c2d3f0
--- /dev/null
@@ -0,0 +1,18 @@
+/*!
+ * Ext JS Library 3.1.0
+ * Copyright(c) 2006-2009 Ext JS, LLC
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
+/**
+ * @class Ext.ux.tree.TreeGridLoader
+ * @extends Ext.tree.TreeLoader
+ */
+Ext.ux.tree.TreeGridLoader = Ext.extend(Ext.tree.TreeLoader, {
+    createNode : function(attr) {
+        if (!attr.uiProvider) {
+            attr.uiProvider = Ext.ux.tree.TreeGridNodeUI;
+        }
+        return Ext.tree.TreeLoader.prototype.createNode.call(this, attr);
+    }
+});
\ No newline at end of file