forked from verdnatura/hedera-web
33 lines
598 B
JavaScript
33 lines
598 B
JavaScript
|
|
module.exports = 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._cssClass = 'cell-radio';
|
|
this.radioGroup = new Htk.RadioGroup(this.doc);
|
|
Htk.Column.prototype.initialize.call(this, props);
|
|
}
|
|
|
|
,render: function(tr) {
|
|
var td = Htk.Column.prototype.render.call(this, tr);
|
|
|
|
var radio = this.radioGroup.createButton(this.value);
|
|
td.appendChild(radio);
|
|
|
|
return td;
|
|
}
|
|
|
|
,clear: function() {
|
|
this.radioGroup.clear();
|
|
}
|
|
});
|