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 if(this.parent().fireEvent('click', this.parent(), this, e) !== false){
58 this.setChecked(true);
62 setChecked : function(state, suppressEvent)
64 this.parent().setValue(this.value, suppressEvent);
68 setBoxLabel : function(v)
73 this.el.select('label.box-label',true).first().dom.innerHTML = (v === null || v === undefined ? '' : v);