AW.UI.Tree Multiselect
Alex,
Is it possible to get the Tree to support multi-select?
The code I am trying does not work.
<script type='text/javascript'>
var tree = {
0: [1, 2, 3, 4],
1: [5, 6],
2: [7],
3: [8],
4: [9]
}
var itemText = ["", "Node 1", "Node 2", "Node 3", "Node 4", "Node 5", "Node 6", "Node 7", "Node 8", "Node 9"];
var obj = new AW.UI.Tree;
obj.setItemText(itemText);
obj.setViewCount(function(i){return tree[i] ? tree[i].length : 0});
obj.setViewIndices(function(i){return tree[i]});
obj.setSelectionMode("multi-row");
obj.setSize(300, 400);
// Add images to indexed nodes.
obj.setItemImage(["", "home", "favorites", "fontsize", "search", "search"]);
document.write(obj);
</script>
Thanks
Is it possible to get the Tree to support multi-select?
The code I am trying does not work.
<script type='text/javascript'>
var tree = {
0: [1, 2, 3, 4],
1: [5, 6],
2: [7],
3: [8],
4: [9]
}
var itemText = ["", "Node 1", "Node 2", "Node 3", "Node 4", "Node 5", "Node 6", "Node 7", "Node 8", "Node 9"];
var obj = new AW.UI.Tree;
obj.setItemText(itemText);
obj.setViewCount(function(i){return tree[i] ? tree[i].length : 0});
obj.setViewIndices(function(i){return tree[i]});
obj.setSelectionMode("multi-row");
obj.setSize(300, 400);
// Add images to indexed nodes.
obj.setItemImage(["", "home", "favorites", "fontsize", "search", "search"]);
document.write(obj);
</script>
Thanks
Matt
September 20,