Roo.select('body > div').remove();
},
- munge : function(cfg, keyname) {
+ munge : function(cfg, keyname, add_xattr) {
keyname = keyname || false;
this.renderObj = this.renderObj || {};
}
if (typeof(cfg[p]) == 'object') { // listeners!!!
- this.munge(cfg[p], p);
+ this.munge(cfg[p], p, add_xattr);
continue;
}
// SPECIAL - PIPE
// normal..
}
+
+ // add xattr data?
+ if (add_xattr) {
+ cfg.xattr = {
+ xtype : cfg.xns + '.' + cfg.xtype
+ };
+
+ }
+
+
+
// now for all the children.. (items)
if (xitems === false) {
return;
var xi = xitems[i];
if (typeof(xi['*prop']) != 'undefined') {
var pr = xi['*prop'];
- this.munge(xi);
+ this.munge(xi, false, add_xattr);
// if prop is an array - then it's items are really the value..
if (pr.match(/\[\]$/)) {
pr = pr.replace(/\[\]$/, '');
continue;
}
- this.munge(xi);
+ this.munge(xi, false, add_xattr);
cfg.items.push(xi);
}
redraw : function(isAuto)
{
this.container.el.select('iframe',true).first().setSize(this.panel.el.getSize());
-
-
+
// return;
// top level is not relivant
this.win().Pman.Builder.View.draw( cfg );
},
- draw :function(cfg) {
+ draw :function(cfg)
+ {
Roo.log(cfg);
if (!cfg.items[0]) {
}
- this.munge(cfg.items[0]);
+ this.munge(cfg.items[0],false , true );
+ Roo.log(cfg);
// return;
// we draw either a dialog or a tab..