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 Roo.each(this.parent().items, function(i){
64 i.el.removeClass('checked');
69 this.el.addClass('checked');
72 if(suppressEvent !== true){
73 this.fireEvent('check', this, state);
76 this.parent().validate();