How do you set links for a tree object?
Say this is my tree, how would i set links for each tree item?
Thanks
-dp
var tree = {
0: [1, 2, 3, 4],
1: [5, 6],
2: [7],
3: [8],
4: [9]
}
var obj = new AW.UI.Tree;
obj.setItemText(["", "Home", "Favorites", "Font size", "Search", "Child node 1", "Child node 2"]);
obj.setItemImage(["", "home", "favorites", "fontsize", "search"]);
obj.setViewCount(function(i){return tree[i] ? tree[i].length : 0});
obj.setViewIndices(function(i){return tree[i]});
document.write(obj);
Thanks
-dp
var tree = {
0: [1, 2, 3, 4],
1: [5, 6],
2: [7],
3: [8],
4: [9]
}
var obj = new AW.UI.Tree;
obj.setItemText(["", "Home", "Favorites", "Font size", "Search", "Child node 1", "Child node 2"]);
obj.setItemImage(["", "home", "favorites", "fontsize", "search"]);
obj.setViewCount(function(i){return tree[i] ? tree[i].length : 0});
obj.setViewIndices(function(i){return tree[i]});
document.write(obj);
DP
July 6,