Article body
Today I used jQuery zTree to display backend data as a tree on the frontend. See the official API. The key call is $.fn.zTree.init(“TREE_HTML_ID”,setting(your configuration; see the official API for the available options),zNodes(the data sent from your backend)).
For querying the database and constructing the tree on the backend, see this blog post
JackSparrow414 Original post This post is licensed under CC BY-NC-SA 4.0