* @cfg {String} html text
* @cfg {String} href the link
* @cfg {Boolean} preventDefault (true | false) default true
+ * @cfg {Boolean} active (true | false) default false
+ * @cfg {Boolean} disabled default false
*
*
* @constructor
href : false,
html : false,
preventDefault: true,
+ active : false,
+ cls : false,
+ disabled: false,
getAutoCreate : function(){
var cfg= {
}
]
};
+
+ if(this.cls){
+ cfg.cls = this.cls;
+ }
+
+ if(this.disabled){
+ cfg.cls = typeof(cfg.cls) !== 'undefined' ? cfg.cls + ' disabled' : 'disabled';
+ }
+
+ if(this.active){
+ cfg.cls = typeof(cfg.cls) !== 'undefined' ? cfg.cls + ' active' : 'active';
+ }
return cfg;
},
e.preventDefault();
}
+ if(this.disabled){
+ return;
+ }
+
this.fireEvent('click', this, e);
}