js 树 ECOTree.js属性 节点背景颜色
发布网友
发布时间:2023-06-22 18:11
我来回答
共1个回答
热心网友
时间:2024-12-13 17:16
function CreateTree() {
t = new ECOTree("t","recallTreeDiv");
t.config.iRootOrientation = ECOTree.RO_LEFT;
t.config.defaultNodeWidth = 246;
t.config.defaultNodeHeight = 36;
t.config.iSubtreeSeparation = 20;
t.config.iSiblingSeparation = 10;
t.config.linkType = 'B';
t.config.useTarget = false;
t.config.nodeFill = ECOTree.NF_GRADIENT;
t.config.colorStyle = ECOTree.CS_LEVEL;
//应该是一下三个当中的一个,自己稍微试一下
t.config.nodeColor = "#FFD700";
t.config.nodeBorderColor = "#FFD700";
t.config.linkColor = "#5555FF";
}