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 {Boolean} inverse false | true
17 * Create a new nav group
18 * @param {Object} config The config object
21 Roo.bootstrap.NavGroup = function(config){
22 Roo.bootstrap.NavGroup.superclass.constructor.call(this, config);
25 Roo.extend(Roo.bootstrap.NavGroup, Roo.bootstrap.Component, {
32 getAutoCreate : function(){
33 var cfg = Roo.apply({}, Roo.bootstrap.NavGroup.superclass.getAutoCreate.call(this));
40 if (['tabs','pills'].indexOf(this.type)!==-1) {
41 cfg.cls += ' nav-' + this.type
43 if (this.type!=='nav') {
44 Roo.log('nav type must be nav/tabs/pills')
46 cfg.cls += ' navbar-nav'
49 if (this.parent().sidebar === true) {
58 if (this.form === true) {
64 if (this.align === 'right') {
65 cfg.cls += ' navbar-right';
67 cfg.cls += ' navbar-left';
71 if (this.align === 'right') {
72 cfg.cls += ' navbar-right';
76 cfg.cls += ' navbar-inverse';