Roo/bootstrap/Card.js
authorAlan Knowles <alan@roojs.com>
Thu, 17 Sep 2020 05:41:40 +0000 (13:41 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 17 Sep 2020 05:41:40 +0000 (13:41 +0800)
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