9 * @class Roo.bootstrap.Radio
10 * @extends Roo.bootstrap.Component
11 * Bootstrap Radio class
12 * @cfg {String} boxLabel - the label associated
13 * @cfg {String} value - the value of radio
17 * @param {Object} config The config object
19 Roo.bootstrap.Radio = function(config){
20 Roo.bootstrap.Radio.superclass.constructor.call(this, config);
25 * Fires when the element is checked or unchecked.
26 * @param {Roo.bootstrap.Radio} this This radio
27 * @param {Boolean} checked The new checked value
33 Roo.extend(Roo.bootstrap.Radio, Roo.bootstrap.Component, {
39 getAutoCreate : function()
43 cls : 'form-group radio',
56 initEvents : function()
58 this.parent().register(this);
60 this.el.on('click', this.onClick, this);
66 this.setChecked(true);
69 setChecked : function(state, suppressEvent)
71 this.parent().setValue(this.value);
73 if(suppressEvent !== true){
74 this.fireEvent('check', this, state);