3.0 beta 2

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,
I too am wondering the same thing.
September 24,
Does anyone have an example of this in their program I could look at?

Andrew
October 1,
what the heck ?
October 24,
disable
August 10,
disable a combobox after click in radion button
August 10,
why not use
<input type="checkbox" onchange="javascript:runme();" name="checkbox" unchecked >
August 30,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.