f44db195cfb8407486f36e0f70d612e543a8c236
[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 current build flow:
17
18  addxtype(pa)
19
20  
21  
22  */
23
24 Dynamic.Component = function(cfg)
25 {
26     config = Roo.apply({
27         // the values specified in the builder for this element go here...
28         
29     }, cfg);
30
31     Dynamic.Component.superclass.constructor.call(this, config);
32     
33     // we can add 'events that the extended element creates here..
34     this.addEvents({
35         //eg..
36        // "click" : true,
37        // "toggle" : true
38     });
39 }
40
41 Roo.extend(Dynamic.Component, Roo.bootstrap.Body, {
42
43     // children...
44     
45     // addxtype << this is the entry point for this component being 
46
47     
48     
49     
50 });
51
52
53
54
55