From 9abbcea91b3001b8aadd128613d2eb0ed68c0c30 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 5 Dec 2018 15:52:07 +0800 Subject: [PATCH] Roo/bootstrap/NavItem.js --- Roo/bootstrap/NavItem.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Roo/bootstrap/NavItem.js b/Roo/bootstrap/NavItem.js index 227da5eb35..9711595d4c 100644 --- a/Roo/bootstrap/NavItem.js +++ b/Roo/bootstrap/NavItem.js @@ -78,6 +78,7 @@ Roo.extend(Roo.bootstrap.NavItem, Roo.bootstrap.Component, { animateRef : false, was_active : false, button_weight : '', + button_outline : null, navLink: false, @@ -86,7 +87,6 @@ Roo.extend(Roo.bootstrap.NavItem, Roo.bootstrap.Component, { var cfg = { tag: this.tag, cls: 'nav-item' - }; if (this.active) { @@ -95,6 +95,18 @@ Roo.extend(Roo.bootstrap.NavItem, Roo.bootstrap.Component, { if (this.disabled) { cfg.cls += ' disabled'; } + + if (this.button_weight.length) { + cfg.tag = this.href ? 'a' : 'button'; + cfg.html = this.html || ''; + cfg.cls += ' btn' + btn- + if (this.href) { + //code + } + + + + } if (this.href || this.html || this.glyphicon || this.icon || this.fa) { cfg.cn = [ -- 2.39.2