X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-bootstrap-debug.js;fp=roojs-bootstrap-debug.js;h=7646245bc534e877da943090f53294b5cff27847;hb=d32f3d7b4b68a01596a80e27d9d1d4cc535fdbe6;hp=961210f1fd11856dd4b8cef5f6ce3fb4f81da958;hpb=7dfe7e5feca4521b4b8b9959096328756a2898e2;p=roojs1 diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 961210f1fd..7646245bc5 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -1508,7 +1508,7 @@ Roo.extend(Roo.bootstrap.Container, Roo.bootstrap.Component, { * * possible... may not be implemented.. * @cfg {String} header_image src url of image. - * @cfg {String} header + * @cfg {String|Object} header * @cfg {Number} header_size (0|1|2|3|4|5) H1 or H2 etc.. 0 indicates default * * @cfg {String} title @@ -1677,7 +1677,12 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component, { cls : 'card-header', html : this.header // escape? }); - } + } else { + cfg.cn.push({ + tag : 'div', + cls : 'card-header d-none' + }); + } if (this.header_image.length) { cfg.cn.push({ tag : 'img', @@ -1734,6 +1739,16 @@ Roo.extend(Roo.bootstrap.Card, Roo.bootstrap.Component, { }, + getCardHeader : function() + { + var ret = this.el.select('.card-header',true).first(); + if (ret.hasClass('d-none')) { + ret.removeClass('d-none'); + } + + return ret; + }, + getChildContainer : function() {