9 * @class Roo.bootstrap.Navbar
10 * @extends Roo.bootstrap.Component
11 * Bootstrap Navbar class
15 * @param {Object} config The config object
19 Roo.bootstrap.Navbar = function(config){
20 Roo.bootstrap.Navbar.superclass.constructor.call(this, config);
24 Roo.extend(Roo.bootstrap.Navbar, Roo.bootstrap.Component, {
33 getAutoCreate : function(){
36 throw { message : "nav bar is now a abstract base class - use SimpleBar / HeaderBar / SideBar etc..."};
40 initEvents :function ()
42 //Roo.log(this.el.select('.navbar-toggle',true));
43 this.el.select('.navbar-toggle',true).on('click', function() {
45 this.el.select('.navbar-collapse',true).toggleClass('in');
53 this.maskEl = Roo.DomHelper.append(this.el, mark, true);
55 var size = this.el.getSize();
56 this.maskEl.setSize(size.width, size.height);
57 this.maskEl.enableDisplayMode("block");
66 getChildContainer : function()
68 if (this.el.select('.collapse').getCount()) {
69 return this.el.select('.collapse',true).first();