examples/grid/ArrayGrid.bjs
authorAlan <alan@roojs.com>
Thu, 14 Apr 2022 07:14:50 +0000 (15:14 +0800)
committerAlan <alan@roojs.com>
Thu, 14 Apr 2022 07:14:50 +0000 (15:14 +0800)
examples/grid/ArrayGrid.js

examples/grid/ArrayGrid.bjs
examples/grid/ArrayGrid.js

index d20e5ff..2ddf565 100644 (file)
@@ -8,7 +8,14 @@
  "items" : [
   {
    "xtype" : "GridPanel",
-   "$ xns" : "Roo"
+   "$ xns" : "Roo",
+   "items" : [
+    {
+     "xtype" : "Grid",
+     "$ xns" : "Roo.grid",
+     "* prop" : "grid"
+    }
+   ]
   }
  ]
 }
\ No newline at end of file
index 99b4ce0..7b4f9ad 100644 (file)
@@ -20,6 +20,11 @@ ArrayGrid = new Roo.XComponent({
    return {
    xtype : 'GridPanel',
    xns : Roo,
-   '|xns' : 'Roo'
+   '|xns' : 'Roo',
+   grid : {
+    xtype : 'Grid',
+    xns : Roo.grid,
+    '|xns' : 'Roo.grid'
+   }
   };  }
 });