288050a0675ad1d1d61379c43e99d7e9259c3a8a
[roojs1] / examples / bootstrap4 / dynamic-components.js
1 /*
2  
3 The idea of this is to work out a new way for the builder to generate code
4 That is more component based..
5 -> basically the top level item would be 'extend' something... - like document body, etc..
6 and then it would render the children...
7
8 Changes that might need making?
9
10 factory on the children might need to be more flexible?
11
12
13 - 1st step -- the outer code will be standard 'extend format'
14  
15  
16  */
17
18 Dynamic.Component = function(cfg)
19 {
20     config = Roo.apply({
21         // the values specified in the builder for this element go here...
22         
23     }, cfg);
24
25     Dynamic.Component.superclass.constructor.call(this, config);
26     
27     // we can add 'events that the extended element creates here..
28     this.addEvents({
29         //eg..
30        // "click" : true,
31        // "toggle" : true
32     });
33 }
34
35
36
37
38
39
40