Roo.bootstrap.Radio = function(config){
Roo.bootstrap.Radio.superclass.constructor.call(this, config);
- this.addEvents({
- /**
- * @event click
- * Fires when the element is click.
- * @param {Roo.bootstrap.CheckBox} this This input
- */
- click : true
- });
};
Roo.extend(Roo.bootstrap.Radio, Roo.bootstrap.Component, {
},
- onClick : function()
+ onClick : function(e)
{
- this.setChecked(true);
+ if(this.parent().fireEvent('click', this.parent(), this, e) !== false){
+ this.setChecked(true);
+ }
},
setChecked : function(state, suppressEvent)