From: Alan Knowles Date: Wed, 5 Dec 2018 07:55:04 +0000 (+0800) Subject: Roo/bootstrap/NavItem.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=bb8f1c72559bd210372f5585812843968c0a0c95 Roo/bootstrap/NavItem.js --- diff --git a/Roo/bootstrap/NavItem.js b/Roo/bootstrap/NavItem.js index 38fe3e7224..fa17071965 100644 --- a/Roo/bootstrap/NavItem.js +++ b/Roo/bootstrap/NavItem.js @@ -107,8 +107,16 @@ Roo.extend(Roo.bootstrap.NavItem, Roo.bootstrap.Component, { if (this.fa) { cfg.html = ' ' + this.html + ''; } - - + if (this.menu) { + + cfg.cn[0].html += " "; + + } + if (this.badge !== '') { + + cfg.html += ' ' + this.badge + ''; + } + return cfg; } if (this.href || this.html || this.glyphicon || this.icon || this.fa) {