(no title)
bigato | 6 years ago
https://codepen.io/dsheiko/pen/MvEpXm
This is a bit fancier than necessary and that makes it not so good as an example for learning, but hopefully it will be enough to give you the idea.
edit: this one is a little bit better to understand the basics: https://medium.com/metaphorical-web/javascript-treeview-cont...
In short, summary/detail has the native hability to collapse the details and you can explore that to implement a tree by nesting them.
bigato|6 years ago
https://pastebin.com/raw/9D02J80s
lukastyrychtr|6 years ago
jakearmitage|6 years ago