/*
- * 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)
title : '',
subtitle : '',
html : '',
+
+
+ childContainer : false,
layoutCls : function()
{
>> 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> <<
});
}
-
+ 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;
},
+
+
+ getChildContainer : function()
+ {
+
+ if(!this.el){
+ return false;
+ }
+ return this.el.select('.roo-card-body-ctr',true).first();
+ }
+
}
\ No newline at end of file