examples/bootstrap4/dynamic-components.js
authorAlan Knowles <alan@roojs.com>
Thu, 21 Feb 2019 10:04:50 +0000 (18:04 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 21 Feb 2019 10:04:50 +0000 (18:04 +0800)
examples/bootstrap4/dynamic-components.js

index 1650132..31e9de3 100644 (file)
@@ -153,7 +153,7 @@ Dynamic.Component.Form = function(cfg)
     // in theory you can use 'cfg.XXX to fill in values...' == eg. cfg.XXX || '10'
     cfg = Roo.apply(this,cfg);
     
-    Roo.apply(cfg, { 
+    Roo.apply(  { 
         
         items : [
          {
@@ -184,7 +184,7 @@ Dynamic.Component.Form = function(cfg)
            }
           ]
          }
-        ]
+        ],cfg // cfg has to be applied to the schema... 
     });