Roo/bootstrap/Card.js
[roojs1] / Roo / bootstrap / Card.js
index e894660..d5144a6 100644 (file)
@@ -1,5 +1,7 @@
 /*
- * This is BS4's Card element.. - similar to our containers probably..
+ *  - LGPL
+ *
+ *  This is BS4's Card element.. - similar to our containers probably..
  * 
  */
 /**
  *
  *
  * possible... may not be implemented..
- * @cfg {String} header_image  
- * @cfg {String|Object} header
- * @cfg {String|Object} header_size (0|1|2|3|4|5) H1 or H2 etc.. 0 indicates default
+ * @cfg {String} header_image  src url of image.
+ * @cfg {String} header
+ * @cfg {Number} header_size (0|1|2|3|4|5) H1 or H2 etc.. 0 indicates default
  * 
- * @cfg {String|Object} title
- * @cfg {String|Object} subtitle
+ * @cfg {String} title
+ * @cfg {String} subtitle
  * @cfg {String} html -- html contents - or just use children..
- * @cfg {String|Object} footer
- * @cfg {Array} - links
- *
+ * @cfg {String} footer
  * @cfg {String} weight (primary|warning|info|danger|secondary|success|light|dark)
  * 
  * @cfg {String} margin (0|1|2|3|4|5|auto)
@@ -135,6 +136,8 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component,  {
         >> this bit is really the body...
         <div> << we will ad dthis in hopefully it will not break shit.
         
+        ** card text does not actually have any styling...
+        
             <p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
         
         </div> <<
@@ -220,5 +223,13 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component,  {
     },
     
     
+    getChildContainer : function()
+    {
+        
+        if(!this.el){
+            return false;
+        }
+        return this.el.select('.roo-card-body-ctr',true).first();    
+    }
     
 }
\ No newline at end of file