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'],
53 // our 'sub component here..
54 '|xns' : 'Dynamic.Component',
55 xns : Dynamic.Component,
61 '|xns' : 'Roo.bootstrap',
67 '|xns' : 'Roo.bootstrap',
69 html : STRINGS['3c0445c81a81e7508168c61674497f7d'],
75 '|xns' : 'Roo.bootstrap',
81 '|xns' : 'Roo.bootstrap',
83 html : STRINGS['b05d72142020283dc6812fd3a9bc691c'],
91 '|xns' : 'Roo.bootstrap',
97 '|xns' : 'Roo.bootstrap',
100 html : STRINGS['11268c03b59cc646b0fb7c4cb592130b'],
116 Dynamic.Component.superclass.constructor.call(this, config);
118 // we can add 'events that the extended element creates here..
129 Roo.extend(Dynamic.Component, Roo.bootstrap.Body, {
131 // methods in here...
138 Roo.apply(Dynamic.Component, {
140 '0c83f57c786a0b4a39efab23731c7ebc' :"email",
141 '3c0445c81a81e7508168c61674497f7d' :"Sign me in",
142 'b05d72142020283dc6812fd3a9bc691c' :"I forgot my password",
143 'b6d4223e60986fa4c9af77ee5f7149c5' :"Sign in",
144 '5f4dcc3b5aa765d61d8327deb882cf99' :"password",
145 '11268c03b59cc646b0fb7c4cb592130b' :"Register a new menbership"
149 /* ------------------------------------------------------------------------------ */
152 Dynamic.Component.Form = function(cfg)
155 var STRINGS = Dynamic.Component.Form._strings;
157 // in theory you can use 'cfg.XXX to fill in values...' == eg. cfg.XXX || '10'
159 var config = Roo.apply({
162 '|xns' : 'Roo.bootstrap',
167 '|xns' : 'Roo.bootstrap',
168 cls : 'body bg-gray',
173 '|xns' : 'Roo.bootstrap',
174 placeholder : STRINGS['0c83f57c786a0b4a39efab23731c7ebc'],
179 '|xns' : 'Roo.bootstrap',
180 inputType : 'password',
181 placeholder : STRINGS['5f4dcc3b5aa765d61d8327deb882cf99'],
186 '|xns' : 'Roo.bootstrap',
187 boxLabel : 'Remember me',
196 Dynamic.Component.Form.superclass.constructor.call(this, config);
198 // we can add 'events that the extended element creates here..
207 Roo.extend(Dynamic.Component.Form, Roo.bootstrap.Form, {
209 // methods in here...
216 Roo.apply(Dynamic.Component.Form, {
218 '0c83f57c786a0b4a39efab23731c7ebc' :"email",
219 '5f4dcc3b5aa765d61d8327deb882cf99' :"password",