I have a TreeGrid / Tree that is working correctly. Code below:
isc.TreeGrid.create(
{
ID: "optionList",
width: 200,
showResizeBar:true,
leaveScrollbarGap: false,
fileImage: "../ums/images/cube_blue.png",
iconSize: 12,
overflow:"visible",
treeFieldTitle:"Asterisk CallCenter Management Engine",
showHeader: false,
layoutAlign:"center",
showRollOver: true,
border: "0px",
showEdges:true,
edgeSize:5,
bodyStyleName: "normal1",
bodyBackgroundColor:"#ffffff",
//autoDraw:false,
data: isc.Tree.create({
ID: "optTree",
bodyStyleName: "normal1",
modelType: "parent",
openProperty:"isOpen",
root: {id: "root"},
data: [
{name: "Dashboard", id: "home", parentId: "root"}
]
}),
What I wish to do now is at program load time, based on come variables pasted to the program, using Tree.add, add some additional entries to the Tree. I am trying to use the following Tree.add, but it is failing. I have read the docs, and have tried different approaches, but I am missing something?
Any suggetions and/or code changes would be appreciated.
Tree.add{
parent: "optTree",
name: "Quick Create",
id: "xayz",
parentId: "root"
}
Thank You
Tom C.