projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7837b4
)
examples/bootstrap4/dynamic-components.js
author
Alan Knowles
<alan@roojs.com>
Fri, 22 Feb 2019 05:16:12 +0000
(13:16 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 22 Feb 2019 05:16:12 +0000
(13:16 +0800)
examples/bootstrap4/dynamic-components.js
patch
|
blob
|
history
diff --git
a/examples/bootstrap4/dynamic-components.js
b/examples/bootstrap4/dynamic-components.js
index
d896fae
..
77b28a0
100644
(file)
--- a/
examples/bootstrap4/dynamic-components.js
+++ b/
examples/bootstrap4/dynamic-components.js
@@
-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',