* @cfg {Boolean} submenu (true | false) default false
* @cfg {String} html text of the item
* @cfg {String} href the link
+ * @cfg {Boolean} disable (true | false) default false
* @cfg {Boolean} preventDefault (true | false) default true
*
*
href : '',
html : '',
preventDefault: true,
+ disable : false
getAutoCreate : function()
{
var cfg = {
tag : 'li',
- cls : (this.submenu) ? 'dropdown-submenu' : '',
cn : [
{
tag : 'a',
]
};
+ if(this.disable){
+ cfg.cls = (typeof(cfg.cls) == 'undefined') ? 'disabled' : (cfg.cls + ' disabled');
+ }
+
+ if(this.submenu){
+ cfg.cls = (typeof(cfg.cls) == 'undefined') ? 'dropdown-submenu' : (cfg.cls + ' dropdown-submenu');
+ }
+
return cfg;
},