Roo.bootstrap.CheckBox = function(config){
Roo.bootstrap.CheckBox.superclass.constructor.call(this, config);
- this.addEvents({
- /**
- * @event check
- * Fires when the element is checked or unchecked.
- * @param {Roo.bootstrap.CheckBox} this This input
- * @param {Boolean} checked The new checked value
- */
- check : true
- });
+ this.addEvents({
+ /**
+ * @event check
+ * Fires when the element is checked or unchecked.
+ * @param {Roo.bootstrap.CheckBox} this This input
+ * @param {Boolean} checked The new checked value
+ */
+ check : true
+ });
};
Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input, {
}
var settings=this;
+
['xs','sm','md','lg'].map(function(size){
if (settings[size]) {
cfg.cls += ' col-' + size + '-' + settings[size];
cls : 'input-group',
cn : []
};
+
if (this.before) {
inputblock.cn.push({
tag :'span',
html : this.before
});
}
+
inputblock.cn.push(input);
+
if (this.after) {
inputblock.cn.push({
tag :'span',
}
- if(this.boxLabel){
+ if(this.boxLabel){
var boxLabelCfg = {
tag: 'label',
//'for': id, // box label is handled by onclick - so no for...