How to use CheckBox?
// ****************************************************************
// Checkbox Cell Template.
// ****************************************************************
My.Templates.Checkbox = Active.System.Template.subclass();
My.Templates.Checkbox.create = function(){
var obj = this.prototype;
obj.setClass("templates","input");
var checkbox = new Active.HTML.INPUT;
checkbox.setClass("input","checkbox");
checkbox.setClass("checkbox",function(){return this.getColumnProperty("index");});
checkbox.setAttribute("type","checkbox");
var hidden = new Active.HTML.INPUT;
hidden.setAttribute("type","hidden");
var label = new Active.HTML.SPAN;
label.setClass("checkbox","label");
label.setContent("text", function() { return this.getItemProperty("text"); });
obj.setContent("checkbox", checkbox );
obj.setContent("hidden", hidden);
obj.setContent("label", label);
};
My.Templates.Checkbox.create();
Here is the template, but how the heck do you use it? I'm polling xml data and wanting to populate/change the value depending on the checkbox, but I can't find any examples on this.
Andrew
September 23,