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
15 * @cfg {String} brand_href href of the brand
19 * Create a new Sidebar
20 * @param {Object} config The config object
24 Roo.bootstrap.NavHeaderbar = function(config){
25 Roo.bootstrap.NavHeaderbar.superclass.constructor.call(this, config);
28 Roo.extend(Roo.bootstrap.NavHeaderbar, Roo.bootstrap.NavSimplebar, {
32 getAutoCreate : function(){
37 tag: this.nav || 'nav',
49 'data-toggle': 'collapse',
54 html: 'Toggle navigation'
74 cls: 'collapse navbar-collapse'
79 cfg.cls += this.inverse ? ' navbar-inverse' : ' navbar-default';
81 if (['fixed-top','fixed-bottom','static-top'].indexOf(this.position)>-1) {
82 cfg.cls += ' navbar-' + this.position;
84 // tag can override this..
86 cfg.tag = this.tag || (this.position == 'fixed-bottom' ? 'footer' : 'header');
89 if (this.brand !== '') {
92 href: this.brand_href ? this.brand_href : '#',
101 cfg.cls += ' main-nav';