From: Alan Knowles Date: Thu, 17 Sep 2020 05:41:40 +0000 (+0800) Subject: Roo/bootstrap/Card.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=b116a95ae811076749e4276fbfd860dae3df7d1c Roo/bootstrap/Card.js --- diff --git a/Roo/bootstrap/Card.js b/Roo/bootstrap/Card.js index bd6467cbc0..e89466073a 100644 --- a/Roo/bootstrap/Card.js +++ b/Roo/bootstrap/Card.js @@ -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