9 * @class Roo.bootstrap.NavGroup
10 * @extends Roo.bootstrap.Component
11 * Bootstrap NavGroup class
12 * @cfg {String} align left | right
13 * @cfg {Boolean} inverse false | true
14 * @cfg {String} type (nav|pills|tab) default nav
15 * @cfg {Boolean} disable (true|false) disable the bar, add marks
18 * Create a new nav group
19 * @param {Object} config The config object
22 Roo.bootstrap.NavGroup = function(config){
23 Roo.bootstrap.NavGroup.superclass.constructor.call(this, config);
26 Roo.extend(Roo.bootstrap.NavGroup, Roo.bootstrap.Component, {
34 getAutoCreate : function(){
35 var cfg = Roo.apply({}, Roo.bootstrap.NavGroup.superclass.getAutoCreate.call(this));
42 if (['tabs','pills'].indexOf(this.type)!==-1) {
43 cfg.cls += ' nav-' + this.type
45 if (this.type!=='nav') {
46 Roo.log('nav type must be nav/tabs/pills')
48 cfg.cls += ' navbar-nav'
51 if (this.parent().sidebar === true) {
60 if (this.form === true) {
66 if (this.align === 'right') {
67 cfg.cls += ' navbar-right';
69 cfg.cls += ' navbar-left';
73 if (this.align === 'right') {
74 cfg.cls += ' navbar-right';
78 cfg.cls += ' navbar-inverse';
86 initEvents :function ()
88 Roo.bootstrap.NavGroup.superclass.initEvents.call(this);
95 this.maskEl = Roo.DomHelper.append(this.el, mark, true);
97 var size = this.el.getSize();
98 if(this.disable && this.sidebar){
99 Roo.log('size!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
101 var a = this.el.select('.dashboard-menu', true).first();
105 this.maskEl.setSize(size.width, size.height);
106 this.maskEl.enableDisplayMode("block");