Adding Custom DOM
[ File Path: super/diydom.html ]
1, Explanation of implementation method
- Use 'setting.view.addHoverDom / removeHoverDom / addDiyDom' attributes can easily display custom DOM.
- Adding custom DOM, is important to understand zTree node object naming rules to ensure the normal controls add DOM.
- If you add the browser's default ’select / checkbox / radio‘ DOM, please adjust the css, to ensure correctly display zTree.
2, Explanation of setting
- Set 'setting.view.addHoverDom / removeHoverDom / addDiyDom' attributes, see the API documentation for more related contents.
3, Explanation of treeNode
- No special requirements on the node data, the user can add custom attributes.