Click on the folder icons to expand or collapse sub-items.
Features of this code snippet:
- Put any HTML inside list items
- Folder and document icons
- Tree configuration can be bookmarked: list IDs to expand in anchor
- Use id="default..." for nodes you want initially expanded
- <ol> lists can expand/collapse, <ul> lists are always expanded
- Visual divider between top-level siblings