render : function(data)
{
+ console.log(data);
+ return;
this.tree = data;
if (!Builder.click) {
this.dialogroot = false;
}
if (this.layoutbase) {
- this.layoutbase.remove();
+ //console.log(Builder.dump(this.layoutbase.el));
+ try {
+ this.layoutbase.remove('center', this.layoutbase.getRegion('center'));
+ } catch( e) {
+ // reload!!?
+ }
this.layoutbase= false;
}
// force center region..
cfg.region = 'center';
cfg.background = false;
- this.layoutbase = new Ext.BorderLayout(document.body, {
-
- center: {
- titlebar: false,
- autoScroll:false,
- closeOnTab: true,
- tabPosition: 'top',
- //resizeTabs: true,
- alwaysShowTabs: true,
- minTabWidth: 140
- }
- });
-
+ if (!this.layoutbase) {
+
+ this.layoutbase = new Ext.BorderLayout(document.body, {
+
+ center: {
+ titlebar: false,
+ autoScroll:false,
+ closeOnTab: true,
+ tabPosition: 'top',
+ //resizeTabs: true,
+ alwaysShowTabs: true,
+ minTabWidth: 140
+ }
+ });
+ }
this.layoutbase.addxtype( cfg );
if(typeof(arr) == 'object') { //Array/Hashes/Objects
for(var item in arr) {
- if (item == 'dom') {
+
+ var value = arr[item];
+ if (item == 'xns') {
continue;
}
- var value = arr[item];
-
if(typeof(value) == 'function') { //If it is an array,
// fake dump...
dumped_text += level_padding + "'" + item + "' : function() { ... },\n";