9 * @class Roo.bootstrap.Navbar
10 * @extends Roo.bootstrap.Component
11 * Bootstrap Navbar class
12 * @cfg {Boolean} sidebar has side bar
13 * @cfg {Boolean} bar is a bar?
14 * @cfg {String} position (fixed-top|fixed-bottom|static-top) position
15 * @cfg {String} brand what is brand
16 * @cfg {Boolean} inverse is inverted color
17 * @cfg {String} type (nav | pills | tabs)
18 * @cfg {Boolean} arrangement stacked | justified
19 * @cfg {String} align (left | right) alignment
20 * @cfg {String} brand_href href of the brand
21 * @cfg {Boolean} main (true|false) main nav bar? default false
22 * @cfg {Boolean} loadMask (true|false) loadMask on the bar
23 * @cfg {String} tag (header|footer|nav|div) default is nav
28 * @param {Object} config The config object
32 Roo.bootstrap.NavSidebar = function(config){
33 Roo.bootstrap.NavSidebar.superclass.constructor.call(this, config);
38 Roo.extend(Roo.bootstrap.NavSidebar, Roo.bootstrap.Navbar, {
45 getAutoCreate : function(){
56 initEvents :function ()
58 //Roo.log(this.el.select('.navbar-toggle',true));
59 this.el.select('.navbar-toggle',true).on('click', function() {
61 this.el.select('.navbar-collapse',true).toggleClass('in');
69 this.maskEl = Roo.DomHelper.append(this.el, mark, true);
71 var size = this.el.getSize();
72 this.maskEl.setSize(size.width, size.height);
73 this.maskEl.enableDisplayMode("block");
82 getChildContainer : function()
84 if (this.bar === true) {
85 return this.el.select('.collapse',true).first();