13 * @class Roo.bootstrap.NavSidebarItem
14 * @extends Roo.bootstrap.Component
15 * Bootstrap Navbar.NavSidebarItem class
17 * Create a new Navbar Button
18 * @param {Object} config The config object
20 Roo.bootstrap.NavSidebarItem = function(config){
21 Roo.bootstrap.NavSidebarItem.superclass.constructor.call(this, config);
26 * The raw click event for the entire grid.
27 * @param {Roo.EventObject} e
32 * Fires when the active item active state changes
33 * @param {Roo.bootstrap.Navbar.Item} this
34 * @param {boolean} state the new state
42 Roo.extend(Roo.bootstrap.NavSidebarItem, Roo.bootstrap.NavItem, {
45 getAutoCreate : function(){
50 href : this.href || '#',
62 html : this.html || ''
71 if (this.glyphicon || this.icon) {
72 var c = this.glyphicon ? ('glyphicon glyphicon-'+this.glyphicon) : this.icon;
73 a.cn.push({ tag : 'i', cls : c }) ;
78 if (this.badge !== '') {
79 a.cn.push({ tag: 'span', cls : 'badge pull-right ' + (this.badgecls || ''), html: this.badge });
83 a.cn.push({ tag : 'i', cls : 'glyphicon glyphicon-chevron-down pull-right'});
84 a.cls += 'dropdown-toggle treeview' ;