9 * @class Roo.bootstrap.NavHeaderbar
10 * @extends Roo.bootstrap.NavSimplebar
11 * Bootstrap Sidebar class
14 * @cfg {String} position (fixed-top|fixed-bottom|static-top) position
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, {
31 getAutoCreate : function(){
36 tag: this.nav || 'nav',
48 'data-toggle': 'collapse',
53 html: 'Toggle navigation'
73 cls: 'collapse navbar-collapse'
78 cfg.cls += this.inverse ? ' navbar-inverse' : ' navbar-default';
80 if (['fixed-top','fixed-bottom','static-top'].indexOf(this.position)>-1) {
81 cfg.cls += ' navbar-' + this.position;
83 cfg.tag = this.position == 'fixed-bottom' ? 'footer' : 'header';
86 if (this.brand !== '') {
89 href: this.brand_href ? this.brand_href : '#',
98 cfg.cls += ' main-nav';