roojs-bootstrap.js
authorAlan Knowles <alan@roojs.com>
Thu, 21 Feb 2019 07:42:50 +0000 (15:42 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 21 Feb 2019 07:42:50 +0000 (15:42 +0800)
roojs-bootstrap-debug.js
Roo/bootstrap/Body.js

Roo/bootstrap/Body.js
roojs-bootstrap-debug.js
roojs-bootstrap.js

index a7ae2f0..cfcb650 100644 (file)
@@ -36,7 +36,7 @@ Roo.extend(Roo.bootstrap.Body, Roo.bootstrap.Component,  {
 
     is_body : true,// just to make sure it's constructed?
 
-       autoCreate : {
+    autoCreate : {
         cls: 'container'
     },
     onRender : function(ct, position)
index cf69832..f58761d 100644 (file)
@@ -462,6 +462,8 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
  * @constructor
  * Create a new body
  * @param {Object} config The config object
+ * @cfg {DomElement} do_render - if this is set, then the constructor will try and initialize render, using this as the start point
  */
 
 Roo.bootstrap.Body = function(config){
@@ -473,13 +475,17 @@ Roo.bootstrap.Body = function(config){
     if (this.cls && this.cls.length) {
         Roo.get(document.body).addClass(this.cls);
     }
+    if (this.do_render) {
+       
+    }
+    
 };
 
 Roo.extend(Roo.bootstrap.Body, Roo.bootstrap.Component,  {
 
     is_body : true,// just to make sure it's constructed?
 
-       autoCreate : {
+    autoCreate : {
         cls: 'container'
     },
     onRender : function(ct, position)
index 7d0c052..2b4a4db 100644 (file)
@@ -16,7 +16,7 @@ delete A.items;return cn;},addxtypeChildren:function(A,B){var C=[];if(!A||!A.len
 },getVisibilityEl:function(){if(typeof(this.visibilityEl)=='object'){return this.visibilityEl;}if(typeof(this.visibilityEl)=='string'){return this.visibilityEl=='parent'?this.parent().getEl():this.getEl();}return this.getEl();},show:function(){if(!this.getVisibilityEl()){return;
 }this.getVisibilityEl().removeClass(['hidden','d-none']);this.fireEvent('show',this);},hide:function(){if(!this.getVisibilityEl()){return;}this.getVisibilityEl().addClass(['hidden','d-none']);this.fireEvent('hide',this);}});
 // Roo/bootstrap/Body.js
-Roo.bootstrap.Body=function(A){A=A||{};Roo.bootstrap.Body.superclass.constructor.call(this,A);this.el=Roo.get(A.el?A.el:document.body);if(this.cls&&this.cls.length){Roo.get(document.body).addClass(this.cls);}};Roo.extend(Roo.bootstrap.Body,Roo.bootstrap.Component,{is_body:true,autoCreate:{cls:'container'}
+Roo.bootstrap.Body=function(A){A=A||{};Roo.bootstrap.Body.superclass.constructor.call(this,A);this.el=Roo.get(A.el?A.el:document.body);if(this.cls&&this.cls.length){Roo.get(document.body).addClass(this.cls);}if(this.do_render){}};Roo.extend(Roo.bootstrap.Body,Roo.bootstrap.Component,{is_body:true,autoCreate:{cls:'container'}
 ,onRender:function(ct,A){}});
 // Roo/bootstrap/ButtonGroup.js
 Roo.bootstrap.ButtonGroup=function(A){Roo.bootstrap.ButtonGroup.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.ButtonGroup,Roo.bootstrap.Component,{size:'',align:'',direction:'',toolbar:false,btn:true,getAutoCreate:function(){var A={cls:'btn-group',html:null}