new AW.Templates.Checkbox; // create classes
AW.Templates.Checkbox.prototype.refresh = function(){
try {
var text = this.getControlProperty("text");
var image = this.getControlProperty("image") || "none";
this.getContent("box/text").element().innerHTML = text;
this.getContent("box/image").element().className = "aw-item-image aw-image-" + image;
this.refreshClasses();
}
catch(err){
}
}
var MyTreeCheckbox = AW.Tree.Item.subclass();
MyTreeCheckbox.create = function(){
AW.Templates.Checkbox.create.call(this);
var obj = this.prototype;
obj.refresh = function(){
try {
var text = this.getControlProperty("text");
var image = this.getControlProperty("image") || "none";
this.getContent("box/text").element().innerHTML = text;
this.getContent("box/image").element().className = "aw-item-image aw-image-" + image;
this.refreshClasses();
}
catch(err){
}
}
}
This topic is archived.