check checkbox
HI,
Is it possble checked a checkbox tree item without setItemValue.
Help please.
Thanks.
Is it possble checked a checkbox tree item without setItemValue.
Help please.
Thanks.
Igor K.
September 20,
var MyTreeCheckbox = AW.Tree.Item.subclass();
MyTreeCheckbox.create = function(){
AW.Templates.CheckedItem.create.call(this);
}
var treeValue = ["", true, false, "mixed", false, true, false];
var treeText = ["", "Home", "Favorites", "Font size", "Search", "Child1", "Child2"];
var treeImage = ["", "home", "favorites", "fontsize", "search"];
var treeView = {0:[1, 2, 3, 4], 1:[5, 6], 2:[7], 3:[8], 4:[9]};
var tree = new AW.UI.Tree;
tree.setItemTemplate(new MyTreeCheckbox);
tree.setItemValue(treeValue);
tree.setItemText(treeText);
tree.setItemImage(treeImage);
tree.setViewCount(function(i){return treeView[i] ? treeView[i].length : 0});
tree.setViewIndices(function(i){return treeView[i]});
document.write(tree);
tree.onItemClicked = function(event, i){
alert(i);
}
}
This topic is archived.
ActiveWidgets is a javascript library for creating user interfaces. It offers excellent performance for complex screens while staying simple, compact and easy to learn. Deployed by thousands of commercial customers in more than 70 countries worldwide.
Copyright © ActiveWidgets 2021