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 var c = this.glyphicon ? ('glyphicon glyphicon-'+this.glyphicon) : this.icon;
73 right = { tag : 'i', cls : c };
78 if (this.badge !== '') {
79 a.push({ tag: 'span' cls : 'badge pull-right', html: this.badge }
83 right = right || { tag : 'i', cls : '' };
84 a.cls += ' dropdown-toggle treeview';
85 right.cls += 'glyphicon glyphicon-chevron-down';