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
16 * Create a new nav group
17 * @param {Object} config The config object
20 Roo.bootstrap.NavGroup = function(config){
21 Roo.bootstrap.NavGroup.superclass.constructor.call(this, config);
24 Roo.extend(Roo.bootstrap.NavGroup, Roo.bootstrap.Component, {
30 getAutoCreate : function(){
31 var cfg = Roo.apply({}, Roo.bootstrap.NavGroup.superclass.getAutoCreate.call(this));
38 if (this.parent().sidebar === true) {
47 if (this.form === true) {
53 if (this.align === 'right') {
54 cfg.cls += ' navbar-right';
56 cfg.cls += ' navbar-left';
61 if (this.align === 'right') {
62 cfg.cls += ' navbar-right';
66 cfg.cls += ' navbar-inverse';