X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsymbols%2Fsrc%2FRoo_bootstrap_NavSidebarItem.js.html;h=727f87ea9e15b79fe6c050df1d2f3520df8a5c34;hb=e80f6e35fec765785e45afd109480638b9abbf8b;hp=4407686a14447d5a981df134e3686f64946e1455;hpb=e864d4fc68cbfd818fe93ee7737123918610401d;p=roojs1
diff --git a/docs/symbols/src/Roo_bootstrap_NavSidebarItem.js.html b/docs/symbols/src/Roo_bootstrap_NavSidebarItem.js.html
index 4407686a14..727f87ea9e 100644
--- a/docs/symbols/src/Roo_bootstrap_NavSidebarItem.js.html
+++ b/docs/symbols/src/Roo_bootstrap_NavSidebarItem.js.html
@@ -14,6 +14,7 @@
* @extends Roo.bootstrap.NavItem
* Bootstrap Navbar.NavSidebarItem class
* {String} badgeWeight (default|primary|success|info|warning|danger)the extra classes for the badge
+ * {bool} open is the menu open
* @constructor
* Create a new Navbar Button
* @param {Object} config The config object
@@ -44,6 +45,8 @@
badgeWeight : 'default',
+ open: false,
+
getAutoCreate : function(){
@@ -72,7 +75,9 @@
if (this.disabled) {
cfg.cls += ' disabled';
}
-
+ if (this.open) {
+ cfg.cls += ' open x-open';
+ }
if (this.glyphicon || this.icon) {
var c = this.glyphicon ? ('glyphicon glyphicon-'+this.glyphicon) : this.icon;
@@ -101,6 +106,12 @@
initEvents : function()
{
+ if (typeof (this.menu) != 'undefined') {
+ this.menu.parentType = this.xtype;
+ this.menu.triggerEl = this.el;
+ this.menu = this.addxtype(Roo.apply({}, this.menu));
+ }
+
this.el.on('click', this.onClick, this);