Roo/bootstrap/Card.js
[roojs1] / Roo / bootstrap / Card.js
index bd6467c..e894660 100644 (file)
@@ -90,6 +90,9 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component,  {
     title : '',
     subtitle : '',
     html : '',
+    
+    
+    childContainer : false,
 
     layoutCls : function()
     {
@@ -198,8 +201,24 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component,  {
             });
         }
         
-          
+        body.cn.push({
+            tag : 'div',
+            cls : 'roo-card-body-ctr'
+        });
+        
+        // fixme ? handle objects?
+        if (this.footer.length) {
+            body.cn.push({
+                tag : 'div',
+                cls : 'card-footer',
+                html: this.footer // escape?
+            });
+        }
+        // footer...
         
         return cfg;
     },
+    
+    
+    
 }
\ No newline at end of file