现在我的菜单是封装在一个xml文件的,dtree 中循环菜单,不同的菜单用不同的小图片,
dtree.add 方法该加哪些参数? 还是说用其他的方法
dtree 中循环菜单,获取图片
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- Go 旅城通票 2016-05-10 06:15关注
不是有个icon参数,配置这个icon就行了
Functions add() Adds a node to the tree. Can only be called before the tree is drawn. id, pid and name are required. Parameters Name Type Description id Number Unique identity number. pid Number Number refering to the parent node. The value for the root node has to be -1. name String Text label for the node. url String Url for the node. title String Title for the node. target String Target for the node. icon String Image file to use as the icon. Uses default if not specified. iconOpen String Image file to use as the open icon. Uses default if not specified. open Boolean Is the node open.
解决 无用评论 打赏 举报
悬赏问题
- ¥15 oracle集群安装出bug
- ¥15 关于#python#的问题:自动化测试
- ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
- ¥15 教务系统账号被盗号如何追溯设备
- ¥20 delta降尺度方法,未来数据怎么降尺度
- ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效
- ¥15 再不同版本的系统上,TCP传输速度不一致
- ¥15 高德地图2.0 版本点聚合中Marker的位置无法实时更新,如何解决呢?
- ¥15 DIFY API Endpoint 问题。
- ¥20 sub地址DHCP问题