Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么nodeClasses不能给节点添加class? #465

Open
andrew2558 opened this issue Sep 5, 2020 · 1 comment
Open

为什么nodeClasses不能给节点添加class? #465

andrew2558 opened this issue Sep 5, 2020 · 1 comment

Comments

@andrew2558
Copy link

var setting = {
   view:{
      nodeClasses: {add: ['tree-dir-item']},
      // nameIsHTML: true
   }
};

zTreeObj = $.fn.zTree.init($("#dirtree"), setting, zNodes);

类tree-dir-item并没有添加到生成的节点中,请问是哪个地方出了问题

@zTree
Copy link
Owner

zTree commented Sep 8, 2020

首先请核实你使用的 zTree 版本是否与 API 中说明的 支持版本一致

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants