zTree / zTree_v3

jQuery Tree Plugin
MIT License
4.1k stars 1.28k forks source link

How to add different set of class name for each node #497

Open AnanthGopal opened 2 years ago

AnanthGopal commented 2 years ago

For example, Below data i have for tree view, I need to add class property value to each node

var zNodes= [ {"id":1, "pId":0, "name":"test1", class="student"}, {"id":11, "pId":1, "name":"test11", class="teacher"}, {"id":12, "pId":1, "name":"test12", class="teacher"}, {"id":111, "pId":11, "name":"test111", class="teacher"} ];