examples/bootstrap4/dynamic-components.js
authorAlan Knowles <alan@roojs.com>
Fri, 22 Feb 2019 05:16:12 +0000 (13:16 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 22 Feb 2019 05:16:12 +0000 (13:16 +0800)
examples/bootstrap4/dynamic-components.js

index d896fae..77b28a0 100644 (file)
@@ -24,6 +24,14 @@ Dynamic.Component = function(cfg)
     var STRINGS = Dynamic.Component._strings;
     Roo.apply(this,cfg);
     
+    // by modifying the incomming 'cfg' and adding the 'items' - the xAdd caller get's the new children.
+    // ** this might cause a problem that you can't add children to 'components?'
+    // -- example??
+    // component == a toolbar...
+    // we might want to add buttons to it..
+    // let's leave this for now.. 
+    
+    
     cfg.items = [
              {
               '|xns' : 'Roo.bootstrap',