id : 1,
- render : function(data)
+ render : function(data, strname)
{
// for debugging
// console.log(data); return;
// data should now be dialog or xcomponent..
// only snag here is that we do not know the name currently..
+ var ix = '_src_' + this.id++;
+ // should replace module name with Builder._src_{id}
+ data = data.replace(strname, 'Builder.' + ix);
+ // next.. we need to ensure that parent is set correctly..
+ data += "\n" + 'Builder.' + ix + ".parent = '#renderel';\n";
-
-
Roo.log(data);return;
if (this.scriptTag) {
Builder.click= Roo.get(document.body).on('click', this.onclick, this);
}
- var ix = '_src_' + this.id;
+
var wait_for_tree = function() {
Builder.tree = Builder[ix];