We've built so many projects that required a tree component, and could never find a library that supported all features. And building your own tree component is not an easy task.
So, we decided to build one for Angular, with all the features you can think of:
- Simple to use
- Well Documented
- Customizable & Extensible (override field names, custom templates, etc...)
- Keyboard navigation
- Async data
- Drag & Drop
- Select & Multiselect
- Filtering
- Virtual Scrolling
- Save & restore tree state
- Event callbacks
- API for accessing & altering the tree state
- Easily styled (comes with very minimal styling)
angular-tree-component supports angular 2.X.X, 4.X.X and 5.X.X releases, and AoT compilation.
Please refer to the full documentation:
https://angular2-tree.readme.io/docs
You can find working demos inside the docs: https://angular2-tree.readme.io/docs
Hello users & contributors of the tree.
We're looking for nice example themes for the tree. If you've made one, and are willing to share, please open an issue and attach your CSS and image of how it should look.
Thanks
To run the example:
git clone https://github.com/500tech/angular-tree-component
cd angular-tree-component/example/cli
npm install
./node_modules/.bin/ng serve
Sorry guys, SystemJS is not supported. Modern web applications use bundlers like Webpack.
We've tried to support SystemJS for a year, but it just causes too many issues.
We would always love to hear suggestions for features & improvements - just open an issue.
Some things on our mind down the road:
- Context menu
- Checkbox & master checkbox support
- Refactor drag & drop
- Add more tests
- Add more examples
run npm run example:cli
and open localhost:4200 to test your code before submitting a pull request.
Windows users - if it doesn't work try npm run example:cli:win
.
To run tests locally - make sure port 4200 is available and run:
$ npm run test:setup # Wait until webpack finishes and http://localhost:4200 is available
$ npm run test
Please check the issues / project before starting to work on a feature / bug to make sure it's not already in progress.