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;
27 // by modifying the incomming 'cfg' and adding the 'items' - the xAdd caller get's the new children.
28 // ** this might cause a problem that you can't add children to 'components?'
30 // component == a toolbar...
31 // we might want to add buttons to it..
32 // let's leave this for now..
37 '|xns' : 'Roo.bootstrap',
43 '|xns' : 'Roo.bootstrap',
45 html : STRINGS['b6d4223e60986fa4c9af77ee5f7149c5'],
51 // our 'sub component here..
52 '|xns' : 'Dynamic.Component',
53 xns : Dynamic.Component,
59 '|xns' : 'Roo.bootstrap',
65 '|xns' : 'Roo.bootstrap',
67 html : STRINGS['3c0445c81a81e7508168c61674497f7d'],
73 '|xns' : 'Roo.bootstrap',
79 '|xns' : 'Roo.bootstrap',
81 html : STRINGS['b05d72142020283dc6812fd3a9bc691c'],
89 '|xns' : 'Roo.bootstrap',
95 '|xns' : 'Roo.bootstrap',
98 html : STRINGS['11268c03b59cc646b0fb7c4cb592130b'],
113 Dynamic.Component.superclass.constructor.call(this, cfg);
115 // we can add 'events that the extended element creates here..
128 Roo.extend(Dynamic.Component, Roo.bootstrap.Body, {
130 // methods in here...
132 '|xns' : 'Roo.bootstrap',
134 style : 'min-height: 100%;',
143 Roo.apply(Dynamic.Component, {
145 '0c83f57c786a0b4a39efab23731c7ebc' :"email",
146 '3c0445c81a81e7508168c61674497f7d' :"Sign me in",
147 'b05d72142020283dc6812fd3a9bc691c' :"I forgot my password",
148 'b6d4223e60986fa4c9af77ee5f7149c5' :"Sign in",
149 '5f4dcc3b5aa765d61d8327deb882cf99' :"password",
150 '11268c03b59cc646b0fb7c4cb592130b' :"Register a new menbership"
154 /* ------------------------------------------------------------------------------ */
157 Dynamic.Component.Form = function(cfg)
160 var STRINGS = Dynamic.Component.Form._strings;
162 // in theory you can use 'cfg.XXX to fill in values...' == eg. cfg.XXX || '10'
168 '|xns' : 'Roo.bootstrap',
169 cls : 'body bg-gray',
174 '|xns' : 'Roo.bootstrap',
175 placeholder : STRINGS['0c83f57c786a0b4a39efab23731c7ebc'],
180 '|xns' : 'Roo.bootstrap',
181 inputType : 'password',
182 placeholder : STRINGS['5f4dcc3b5aa765d61d8327deb882cf99'],
187 '|xns' : 'Roo.bootstrap',
188 boxLabel : 'Remember me',
189 cls : cfg.rememberCls,
200 Dynamic.Component.Form.superclass.constructor.call(this, cfg);
202 // we can add 'events that the extended element creates here..
211 Roo.extend(Dynamic.Component.Form, Roo.bootstrap.Form, {
213 // methods in here...
215 // default values here...
216 rememberCls : 'xxxx', // these could be configurable items.. (the UI can pick them up as optional values.)
222 Roo.apply(Dynamic.Component.Form, {
224 '0c83f57c786a0b4a39efab23731c7ebc' :"emailx",
225 '5f4dcc3b5aa765d61d8327deb882cf99' :"password",