Freeze the Root Node
[ File Path: demo/super/oneroot.html ]
Explanation of implementation method
- For only one root, and do not show +/- switch needs need to modify the css, and set the setting.
- zTree v3.x can be for a given level, set the style, check out the page source, see the css.
- Set setting.view.dblClickExpand to Function, you can turn off double-clicking for expand the root node.