Roo/bootstrap/Container.js
authoredward <edward@roojs.com>
Fri, 4 Dec 2015 04:26:48 +0000 (12:26 +0800)
committeredward <edward@roojs.com>
Fri, 4 Dec 2015 04:26:48 +0000 (12:26 +0800)
Roo/bootstrap/Container.js

index 7177dcb..e2d9248 100644 (file)
@@ -121,16 +121,22 @@ Roo.extend(Roo.bootstrap.Container, Roo.bootstrap.Component,  {
             cfg.cn = [];
             if (this.header.length) {
                 cfg.cn.push({
+                    
                     cls : 'panel-heading',
-                    cn : [
-                        {
-                            tag: 'h3',
-                            cls : 'panel-title',
-                            html : this.header
-                        }
-                    ]
+                    cn : []
                 });
                 
+                if(this.expandable){
+                    cfg.cn.cn.push({
+                        tag: 'i',
+                        cls: 'fa fa-minus'
+                    });
+                }
+                
+                cfg.cn.cn.push({
+                    tag: 'i',
+                    cls: 'fa fa-minus'
+                });
             }
             body = false;
             cfg.cn.push({