10 * @class Roo.bootstrap.Container
11 * @extends Roo.bootstrap.Component
12 * Bootstrap Container class
13 * @cfg {Boolean} jumbotron is it a jumbotron element
14 * @cfg {String} html content of element
15 * @cfg {String} well (lg|sm|md) a well, large, small or medium.
16 * @cfg {String} panel (primary|success|info|warning|danger) render as a panel.
17 * @cfg {String} header content of header (for panel)
18 * @cfg {String} footer content of footer (for panel)
19 * @cfg {String} sticky (footer|wrap|push) block to use as footer or body- needs css-bootstrap/sticky-footer.css
22 * Create a new Container
23 * @param {Object} config The config object
26 Roo.bootstrap.Container = function(config){
27 Roo.bootstrap.Container.superclass.constructor.call(this, config);
30 Roo.extend(Roo.bootstrap.Container, Roo.bootstrap.Component, {
40 getChildContainer : function() {
41 if (this.panel.length) {
42 return this.el.select('.panel-body',true).first();
49 getAutoCreate : function(){
56 cfg.cls = 'jumbotron';
59 cfg.cls = this.cls + '';
62 if (this.sticky.length) {
63 var bd = Roo.get(document.body)
64 if (!bd.hasClass('bootstrap-sticky')) {
65 bd.addClass('bootstrap-sticky');
66 Roo.select('html',true).setStyle('height', '100%');
69 cfg.cls += 'bootstrap-sticky-' + this.sticky;
73 if (this.well.length) {
77 cfg.cls +=' well well-' +this.well;
87 if (this.panel.length) {
88 cfg.cls += 'panel panel-' + this.panel;
90 if (this.header.length) {
93 cls : 'panel-heading',
109 if (this.footer.length) {
111 cls : 'panel-footer',
119 body.html = this.html || cfg.html;
121 if (!cfg.cls.length) {
122 cfg.cls = 'container';