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...
8 Changes that might need making?
10 factory on the children might need to be more flexible?
13 - 1st step -- the outer code will be standard 'extend format'
23 Roo.namespace('Dynamic');
25 Dynamic.Component = function(cfg)
28 var STRINGS = Dynamic.Component._strings;
30 var config = Roo.apply({
31 // the values specified in the builder for this element go here...
32 '|xns' : 'Roo.bootstrap',
34 style : 'min-height: 100%;',
35 //xns : Roo.bootstrap,
36 //xtype : 'Body', << not needed...
39 '|xns' : 'Roo.bootstrap',
45 '|xns' : 'Roo.bootstrap',
47 html : STRINGS['b6d4223e60986fa4c9af77ee5f7149c5'],
52 '|xns' : 'Roo.bootstrap',
57 '|xns' : 'Roo.bootstrap',
63 '|xns' : 'Roo.bootstrap',
64 placeholder : STRINGS['0c83f57c786a0b4a39efab23731c7ebc'],
69 '|xns' : 'Roo.bootstrap',
70 inputType : 'password',
71 placeholder : STRINGS['5f4dcc3b5aa765d61d8327deb882cf99'],
76 '|xns' : 'Roo.bootstrap',
77 boxLabel : 'Remember me',
88 '|xns' : 'Roo.bootstrap',
94 '|xns' : 'Roo.bootstrap',
96 html : STRINGS['3c0445c81a81e7508168c61674497f7d'],
102 '|xns' : 'Roo.bootstrap',
108 '|xns' : 'Roo.bootstrap',
110 html : STRINGS['b05d72142020283dc6812fd3a9bc691c'],
118 '|xns' : 'Roo.bootstrap',
124 '|xns' : 'Roo.bootstrap',
127 html : STRINGS['11268c03b59cc646b0fb7c4cb592130b'],
143 Dynamic.Component.superclass.constructor.call(this, config);
145 // we can add 'events that the extended element creates here..
156 Roo.extend(Dynamic.Component, Roo.bootstrap.Body, {
160 // addxtype << this is the entry point for this component being
167 Roo.apply(Dynamic.Component, {
169 '0c83f57c786a0b4a39efab23731c7ebc' :"email",
170 '3c0445c81a81e7508168c61674497f7d' :"Sign me in",
171 'b05d72142020283dc6812fd3a9bc691c' :"I forgot my password",
172 'b6d4223e60986fa4c9af77ee5f7149c5' :"Sign in",
173 '5f4dcc3b5aa765d61d8327deb882cf99' :"password",
174 '11268c03b59cc646b0fb7c4cb592130b' :"Register a new menbership"
178 /* ------------------------------------------------------------------------------ */
181 Dynamic.Component.Form = function(cfg)
184 var STRINGS = Dynamic.Component.Form._strings;
186 // in theory you can use 'cfg.XXX to fill in values...' == eg. cfg.XXX || '10'
188 var config = Roo.apply({
191 '|xns' : 'Roo.bootstrap',
196 '|xns' : 'Roo.bootstrap',
197 cls : 'body bg-gray',
202 '|xns' : 'Roo.bootstrap',
203 placeholder : STRINGS['0c83f57c786a0b4a39efab23731c7ebc'],
208 '|xns' : 'Roo.bootstrap',
209 inputType : 'password',
210 placeholder : STRINGS['5f4dcc3b5aa765d61d8327deb882cf99'],
215 '|xns' : 'Roo.bootstrap',
216 boxLabel : 'Remember me',
225 Dynamic.Component.Form.superclass.constructor.call(this, config);
227 // we can add 'events that the extended element creates here..