您的位置:首页 > 产品设计 > UI/UE

给easyui tree树加图标

2016-04-04 22:45 387 查看
在给界面传JSON值多加个图标属性就OK了,

其中IconClass为数据库中存放的图标字段

TreeNode treeNode = new TreeNode
{
id =  this.MenuCode ,
text = this.MenuName,
//  state = this.state == true ?"open" :"closed"  ,//添用方法自动处理了
iconCls =this.IconClass,//添加图标
Checked = false,
attributes = new { Url = this.URL },
children = new List<TreeNode>()
};
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: