Awfully basic JavaScript treeview component.
npm install simple-treeviewAwfully basic JavaScript treeview component.
- API documentation: https://unpkg.com/simple-treeview/docs/index.html
- Live demo
- Vanilla: https://unpkg.com/simple-treeview/examples/vanilla.html
- Bootstrap: https://unpkg.com/simple-treeview/examples/bootstrap.html
- Include the treeview CSS:
``html`
- If you want to use Font Awesome icons, include its CSS as well:
`html`
- Load the treeview JavaScript (as an ES module), and use the VanillaTreeView class:
`html`
- Make sure you include Bootstrap dependencies (incl. Bootstrap Icons if you want to use those, too), for example:
`html`
- Include the treeview CSS:
`html`
- Load the treeview JavaScript (as an ES module), and use the BootstrapTreeView class:
`html``