X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsymbols%2Fsrc%2FRoo_bootstrap_panel_Content.js.html;h=120c1ac8ee34882a2d4d19fe32f04d0432d8b3e3;hb=55eaa96bc7c2a974413f6ef4c4f60fab80b13320;hp=2b289bd67b95e466d230d01b3edd0e99fe75f890;hpb=3001f1efb6975abb2b30a6fc08bff0b7cc29f59f;p=roojs1
diff --git a/docs/symbols/src/Roo_bootstrap_panel_Content.js.html b/docs/symbols/src/Roo_bootstrap_panel_Content.js.html
index 2b289bd67b..120c1ac8ee 100644
--- a/docs/symbols/src/Roo_bootstrap_panel_Content.js.html
+++ b/docs/symbols/src/Roo_bootstrap_panel_Content.js.html
@@ -27,6 +27,7 @@
* @cfg {String/Object} params When used with {@link #url}, calls {@link #setUrl} with this value
* @cfg {Boolean} loadOnce When used with {@link #url}, calls {@link #setUrl} with this value
* @cfg {String} content Raw content to fill content panel with (uses setContent on construction.)
+ * @cfg {Boolean} badges render the badges
* @constructor
* Create a new ContentPanel.
@@ -37,6 +38,8 @@
*/
Roo.bootstrap.panel.Content = function( config){
+ this.tpl = config.tpl || false;
+
var el = config.el;
var content = config.content;
@@ -73,7 +76,7 @@
this.toolbar = new config.toolbar.xns[config.toolbar.xtype](config.toolbar);
- this.wrapEl = this.el.wrap();
+ this.wrapEl = this.el; var ti = [];
if (config.toolbar.items) {
ti = config.toolbar.items ;
@@ -190,13 +193,23 @@
};
Roo.extend(Roo.bootstrap.panel.Content, Roo.bootstrap.Component, {
- tabTip:'',
+
+ tabTip : '',
+
setRegion : function(region){
this.region = region;
- if(region){
+ this.setActiveClass(region && !this.background);
+ },
+
+
+ setActiveClass: function(state)
+ {
+ if(state){
this.el.replaceClass("roo-layout-inactive-content", "roo-layout-active-content");
+ this.el.setStyle('position','relative');
}else{
this.el.replaceClass("roo-layout-active-content", "roo-layout-inactive-content");
+ this.el.setStyle('position', 'absolute');
}
},
@@ -208,8 +221,10 @@
return this.toolbar;
},
- setActiveState : function(active){
+ setActiveState : function(active)
+ {
this.active = active;
+ this.setActiveClass(active);
if(!active){
this.fireEvent("deactivate", this);
}else{