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);
24 Roo.extend(Roo.bootstrap.Radio, Roo.bootstrap.Component, {
30 getAutoCreate : function()
34 cls : 'form-group radio',
47 initEvents : function()
49 this.parent().register(this);
51 this.el.on('click', this.onClick, this);
57 this.setChecked(true);
60 setChecked : function(state, suppressEvent)
62 this.parent().setValue(this.value);
64 if(suppressEvent !== true){
65 this.fireEvent('check', this, state);