jQuery OrgChart 是一个jQuery插件能够让帮你将一组嵌套的元素渲染成一个易于阅读的树形结构。易于使用。 你可以一个特定的树节来展示和隐藏一个树分支。可以采用CSS进行风格修改。还可以拖拉的方式来改变树节点的位置。
OrgChart 是一个基于纯DOM与CSS3的组织结构图插件

基于DOM+CSS3实现OrgChart组织结构图插件


示例代码:
CSS Code复制内容到剪贴板
  1. // sample of core source code    
  2. var datascource = {    
  3. 'name': 'Lao Lao',    
  4. 'title': 'general manager',    
  5. 'relationship': ‘001’,    
  6. 'children': [    
  7. { 'name': 'Bo Miao', 'title': 'department manager', 'relationship': ‘110’ },    
  8. { 'name': 'Su Miao', 'title': 'department manager', 'relationship': ‘111’,    
  9. 'children': [    
  10. { 'name': 'Tie Hua', 'title': 'senior engineer', 'relationship': ‘110’ },    
  11. { 'name': 'Hei Hei', 'title': 'senior engineer', 'relationship': ‘110’ }    
  12. ]    
  13. },    
  14. { 'name': 'Yu Jie', 'title': 'department manager', 'relationship': ‘110’ }    
  15. ]    
  16. };    
  17. $('#chart-container').orgchart({    
  18. 'data' : datascource,    
  19. 'depth': 2,    
  20. 'nodeTitle': 'name',    
  21. 'nodeContent': 'title'    
  22. });  

关于小编给大家介绍的基于DOM+CSS3实现OrgChart组织结构图插件 到此为止,希望对大家有所帮助!

标签:
jquery,orgchart,, html5,orgchart

免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
狼山资源网 Copyright www.pvsay.com

评论“基于DOM+CSS3实现OrgChart组织结构图插件”

暂无“基于DOM+CSS3实现OrgChart组织结构图插件”评论...

RTX 5090要首发 性能要翻倍!三星展示GDDR7显存

三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。

首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。

据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。