wz1992777 2016-05-10 06:00 采纳率: 0%
浏览 1161

dtree 中循环菜单,获取图片

现在我的菜单是封装在一个xml文件的,dtree 中循环菜单,不同的菜单用不同的小图片,
dtree.add 方法该加哪些参数? 还是说用其他的方法

  • 写回答

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 使用C#,asp.net读取Excel文件并保存到Oracle数据库
  • ¥15 C# datagridview 单元格显示进度及值
  • ¥15 thinkphp6配合social login单点登录问题
  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 虚心请教几个问题,小生先有礼了
  • ¥30 截图中的mathematics程序转换成matlab