2015-01-23 13:09:30 +00:00
|
|
|
Htk.ColumnRadio = new Class
|
|
|
|
({
|
|
|
|
Extends: Htk.Column
|
|
|
|
,Tag: 'htk-column-radio'
|
|
|
|
,Properties:
|
|
|
|
{
|
|
|
|
param:
|
|
|
|
{
|
|
|
|
type: Vn.Param
|
|
|
|
,set: function (x)
|
|
|
|
{
|
|
|
|
this.radioGroup.master = x;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
,initialize: function (props)
|
|
|
|
{
|
2015-11-26 12:30:04 +00:00
|
|
|
this._cssClass = 'cell-radio';
|
2015-01-23 13:09:30 +00:00
|
|
|
this.radioGroup = new Htk.RadioGroup ();
|
2015-11-26 12:30:04 +00:00
|
|
|
this.parent (props);
|
2015-01-23 13:09:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
,render: function (tr)
|
|
|
|
{
|
|
|
|
var td = this.parent (tr);
|
|
|
|
|
|
|
|
var radio = this.radioGroup.createButton (this.value);
|
|
|
|
td.appendChild (radio);
|
|
|
|
|
|
|
|
return td;
|
|
|
|
}
|
|
|
|
|
|
|
|
,clear: function ()
|
|
|
|
{
|
|
|
|
this.radioGroup.clear ();
|
|
|
|
}
|
|
|
|
});
|