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 || ''
70 // fixme - this should handle glyphicon or ico
71 if (this.glyphicon || this.icon) {
72 right = this.glyphicon ? ('glyphicon glyphicon-'+this.glyphicon) : this.icon;
73 a.cn.push( { tag : 'i', cls : c });
78 if (this.badge !== '') {
79 cfg.cn[0].html += ' <span class="badge">' + this.badge + '</span>';
83 cfg.cn[0].cls += ' dropdown-toggle treeview';
84 cfg.cn[0].html += '<span class="glyphicon glyphicon-chevron-down"></span>';