X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=docs%2Fsrc%2FRoo_bootstrap_Menu.js.html;h=211a7c98b856fa88ff00a67e3564ee07f214dbee;hp=c9b1a643933ab39d0a0bb2fe5ecfdeb365aaa845;hb=50c57c8e8f83719c66c64a18f16f89cc1b79a466;hpb=89421cfc05345dc50d03f6bc14a3ba81a638f7a7
diff --git a/docs/src/Roo_bootstrap_Menu.js.html b/docs/src/Roo_bootstrap_Menu.js.html
index c9b1a64393..211a7c98b8 100644
--- a/docs/src/Roo_bootstrap_Menu.js.html
+++ b/docs/src/Roo_bootstrap_Menu.js.html
@@ -13,6 +13,7 @@
* @cfg {bool} hidden if the menu should be hidden when rendered.
* @cfg {bool} stopEvent (true|false) Stop event after trigger press (default true)
* @cfg {bool} isLink (true|false) the menu has link disable auto expand and collaspe (default false)
+ * @cfg {bool} hideTrigger (true|false) default false - hide the carret for trigger.
*
* @constructor
* Create a new Menu
@@ -108,7 +109,9 @@
isLink : false,
- container_method : 'getDocumentBody',
+ container_method : 'getDocumentBody', hideTrigger : false,
getChildContainer : function() {
@@ -147,12 +150,13 @@
this.triggerEl.on(Roo.isTouch ? 'touchstart' : 'mouseup', this.onTriggerPress, this);
-
- if (this.triggerEl.hasClass('nav-item') && this.triggerEl.select('.nav-link',true).length) {
- this.triggerEl.select('.nav-link',true).first().addClass('dropdown-toggle');
- } else if (!this.triggerEl.hasClass('no-dropdown-toggle')) {
- this.triggerEl.addClass('dropdown-toggle');
+ if (!this.hideTrigger) {
+ if (this.triggerEl.hasClass('nav-item') && this.triggerEl.select('.nav-link',true).length) {
+ this.triggerEl.select('.nav-link',true).first().addClass('dropdown-toggle');
+ } else {
+ this.triggerEl.addClass('dropdown-toggle');
+ }
}
if (Roo.isTouch) {
this.el.on('touchstart' , this.onTouch, this);