9 * @class Roo.bootstrap.NavHeaderbar
10 * @extends Roo.bootstrap.NavSimplebar
11 * Bootstrap Sidebar class
13 * @cfg {String} brand what is brand
14 * @cfg {String} position (fixed-top|fixed-bottom|static-top) position
15 * @cfg {String} brand_href href of the brand
18 * Create a new Sidebar
19 * @param {Object} config The config object
23 Roo.bootstrap.NavHeaderbar = function(config){
24 Roo.bootstrap.NavHeaderbar.superclass.constructor.call(this, config);
27 Roo.extend(Roo.bootstrap.NavHeaderbar, Roo.bootstrap.NavSimplebar, {
34 getAutoCreate : function(){
39 tag: this.nav || 'nav',
51 'data-toggle': 'collapse',
56 html: 'Toggle navigation'
76 cls: 'collapse navbar-collapse'
81 cfg.cls += this.inverse ? ' navbar-inverse' : ' navbar-default';
83 if (['fixed-top','fixed-bottom','static-top'].indexOf(this.position)>-1) {
84 cfg.cls += ' navbar-' + this.position;
86 // tag can override this..
88 cfg.tag = this.tag || (this.position == 'fixed-bottom' ? 'footer' : 'header');
91 if (this.brand !== '') {
94 href: this.brand_href ? this.brand_href : '#',
103 cfg.cls += ' main-nav';