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 ?? can we apply it back to the old Roo library?
12 ** builder--- needs updateing
13 ** need test for dialogs... - should be pretty similar to existing.
19 Roo.namespace('Dynamic');
21 Dynamic.Component = function(cfg)
24 var STRINGS = Dynamic.Component._strings;
26 var config = Roo.apply({
27 // the values specified in the builder for this element go here...
28 '|xns' : 'Roo.bootstrap',
30 style : 'min-height: 100%;',
31 //xns : Roo.bootstrap,
32 //xtype : 'Body', << not needed...
35 '|xns' : 'Roo.bootstrap',
41 '|xns' : 'Roo.bootstrap',
43 html : STRINGS['b6d4223e60986fa4c9af77ee5f7149c5'],
49 // our 'sub component here..
50 '|xns' : 'Dynamic.Component',
51 xns : Dynamic.Component,
57 '|xns' : 'Roo.bootstrap',
63 '|xns' : 'Roo.bootstrap',
65 html : STRINGS['3c0445c81a81e7508168c61674497f7d'],
71 '|xns' : 'Roo.bootstrap',
77 '|xns' : 'Roo.bootstrap',
79 html : STRINGS['b05d72142020283dc6812fd3a9bc691c'],
87 '|xns' : 'Roo.bootstrap',
93 '|xns' : 'Roo.bootstrap',
96 html : STRINGS['11268c03b59cc646b0fb7c4cb592130b'],
112 Dynamic.Component.superclass.constructor.call(this, config);
114 // we can add 'events that the extended element creates here..
125 Roo.extend(Dynamic.Component, Roo.bootstrap.Body, {
127 // methods in here...
134 Roo.apply(Dynamic.Component, {
136 '0c83f57c786a0b4a39efab23731c7ebc' :"email",
137 '3c0445c81a81e7508168c61674497f7d' :"Sign me in",
138 'b05d72142020283dc6812fd3a9bc691c' :"I forgot my password",
139 'b6d4223e60986fa4c9af77ee5f7149c5' :"Sign in",
140 '5f4dcc3b5aa765d61d8327deb882cf99' :"password",
141 '11268c03b59cc646b0fb7c4cb592130b' :"Register a new menbership"
145 /* ------------------------------------------------------------------------------ */
148 Dynamic.Component.Form = function(cfg)
151 var STRINGS = Dynamic.Component.Form._strings;
153 // in theory you can use 'cfg.XXX to fill in values...' == eg. cfg.XXX || '10'
154 cfg = Roo.apply(this,cfg);
160 '|xns' : 'Roo.bootstrap',
161 cls : 'body bg-gray',
166 '|xns' : 'Roo.bootstrap',
167 placeholder : STRINGS['0c83f57c786a0b4a39efab23731c7ebc'],
172 '|xns' : 'Roo.bootstrap',
173 inputType : 'password',
174 placeholder : STRINGS['5f4dcc3b5aa765d61d8327deb882cf99'],
179 '|xns' : 'Roo.bootstrap',
180 boxLabel : 'Remember me',
181 cls : cfg.rememberCls,
187 ],cfg // cfg has to be applied to the schema...
192 Dynamic.Component.Form.superclass.constructor.call(this, cfg);
194 // we can add 'events that the extended element creates here..
203 Roo.extend(Dynamic.Component.Form, Roo.bootstrap.Form, {
205 // methods in here...
207 // default values here...
208 rememberCls : 'xxxx', // these could be configurable items.. (the UI can pick them up as optional values.)
214 Roo.apply(Dynamic.Component.Form, {
216 '0c83f57c786a0b4a39efab23731c7ebc' :"emailx",
217 '5f4dcc3b5aa765d61d8327deb882cf99' :"password",