forked from verdnatura/hedera-web
38 lines
520 B
JavaScript
38 lines
520 B
JavaScript
|
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)
|
||
|
{
|
||
|
this.parent (props);
|
||
|
this.radioGroup = new Htk.RadioGroup ();
|
||
|
}
|
||
|
|
||
|
,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 ();
|
||
|
}
|
||
|
});
|