dhtmlxTree 使用示例
<!--[endif]-->"?src=""?id="outher"?width="120px"?panelWidth="120">
????????<MenuItem?name="Yellow"?src="./images/yellow.gif"??id="edit_Yellow"/>????
????????<MenuItem?name="White"?src="./images/white.gif"??id="edit_White"/>????
????</MenuItem>
</menu>
注:dhtmlxTree 标准版不支持菜单功能,所以需要对dhtmlxtree.js做些修改,在脚本的最后面加上如下方法:
<!--[if !supportLineBreakNewLine]-->
<!--[endif]-->
dhtmlXTreeObject.prototype.enableContextMenu=function(menu)
{
????if(menu)????this.cMenu=menu
};