7 Roo.bootstrap.Navbar.Item = function(config){
8 Roo.bootstrap.Navbar.Item.superclass.constructor.call(this, config);
11 Roo.extend(Roo.bootstrap.Navbar.Item, Roo.bootstrap.Component, {
19 getAutoCreate : function(){
21 var cfg = Roo.apply({}, Roo.bootstrap.Navbar.Item.superclass.getAutoCreate.call(this));
23 if (this.parent().parent().sidebar === true) {
35 cfg.cn[0].href = this.href;
52 if(cfg.html){cfg.html = ' ' + this.html};
56 cls: 'glyphicon glyphicon-' + this.glyphicon
61 cfg.cn[0].html = this.html || cfg.cn[0].html ;
65 cfg.cn[0].html += " <span class='caret'></span>";
66 //}else if (!this.href) {
68 // cfg.cn[0].cls='navbar-text';
71 cfg.cn[0].href=this.href||'#';
72 cfg.cn[0].html=this.html;
75 if (this.badge !== '') {
91 initEvents: function() {
92 // Roo.log('init events?');
93 // Roo.log(this.el.dom);
94 this.el.select('a',true).on('click',
96 this.fireEvent('click', this);