https://github.com/macopedia/typo3.tree
SVG Tree Component
https://github.com/macopedia/typo3.tree
Last synced: over 1 year ago
JSON representation
SVG Tree Component
- Host: GitHub
- URL: https://github.com/macopedia/typo3.tree
- Owner: macopedia
- Created: 2017-06-14T11:38:08.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-21T11:34:36.000Z (almost 9 years ago)
- Last Synced: 2025-03-07T03:04:38.699Z (over 1 year ago)
- Language: JavaScript
- Size: 1.26 MB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SVGTree
This is a demo for a SVGTree.
It is based on the D3.js v4
Clone repository:
`git clone git@github.com:wmdbsystems/TYPO3.Tree.git`
Install bower components:
`bower install`
Install npm modules
`npm install`
Open index.html in the browser to see demo.
## How does it work
Index.html includes `main.js` which initializes demo trees.
There are 3 components:
- SvgTree - a base component, capable of rendering tree with icons
- SelectTree - extended component used as category tree in TYPO3, capable of rendering checkboxes with 3 states (checked, unchecked and indetermined==some descendant is selected). SelectTree inherits from SvgTree and extend it with checkbox functionality (e.g. by listening to some events).
- SvgTreeToolbar - a toolbar shown on top of category tree on the demo page.