From b116a95ae811076749e4276fbfd860dae3df7d1c Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 17 Sep 2020 13:41:40 +0800 Subject: [PATCH] Roo/bootstrap/Card.js --- Roo/bootstrap/Card.js | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) 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 -- 2.39.2