},
- onClick : function()
+ onClick : function(e)
{
- this.setChecked(true);
+ if(this.parent().fireEvent('click', this.parent(), this, e) !== false){
+ this.setChecked(true);
+ }
},
setChecked : function(state, suppressEvent)
{
- Roo.each(this.parent().items, function(i){
- i.checked = false;
- i.el.removeClass('checked');
- });
+ this.parent().setValue(this.value, suppressEvent);
- if(state){
- this.checked = true;
- this.el.addClass('checked');
- }
+ },
+
+ setBoxLabel : function(v)
+ {
+ this.boxLabel = v;
- if(suppressEvent !== true){
- this.fireEvent('check', this, state);
+ if(this.rendered){
+ this.el.select('label.box-label',true).first().dom.innerHTML = (v === null || v === undefined ? '' : v);
}
-
- this.parent().validate();
}
});