13 * @class Roo.bootstrap.NavSidebarItem
14 * @extends Roo.bootstrap.NavItem
15 * Bootstrap Navbar.NavSidebarItem class
16 * {String} badgeWeight (default|primary|success|info|warning|danger)the extra classes for the badge
18 * Create a new Navbar Button
19 * @param {Object} config The config object
21 Roo.bootstrap.NavSidebarItem = function(config){
22 Roo.bootstrap.NavSidebarItem.superclass.constructor.call(this, config);
27 * The raw click event for the entire grid.
28 * @param {Roo.EventObject} e
33 * Fires when the active item active state changes
34 * @param {Roo.bootstrap.NavSidebarItem} this
35 * @param {boolean} state the new state
43 Roo.extend(Roo.bootstrap.NavSidebarItem, Roo.bootstrap.NavItem, {
46 getAutoCreate : function(){
51 href : this.href || '#',
63 html : this.html || ''
72 if (this.glyphicon || this.icon) {
73 var c = this.glyphicon ? ('glyphicon glyphicon-'+this.glyphicon) : this.icon;
74 a.cn.push({ tag : 'i', cls : c }) ;
79 if (this.badge !== '') {
80 a.cn.push({ tag: 'span', cls : 'badge pull-right ' + (this.badgecls || ''), html: this.badge });
84 a.cn.push({ tag : 'i', cls : 'glyphicon glyphicon-chevron-down pull-right'});
85 a.cls += 'dropdown-toggle treeview' ;
96 initEvents : function()