Code Monkey home page Code Monkey logo

angular2-tree-component's Introduction

npm version

angular2 tree component

Call for styles

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 send your CSS file to [email protected], and we will display it on the readme page of the tree.

Thanks

A full featured tree component for Angular 2

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 2, with all the features you can think of:

  • Simple to use
  • Well Documented
  • Keyboard navigation
  • Async data
  • Drag & Drop
  • Select & Multiselect
  • Filtering
  • Customizable (override field names, custom templates, etc...)
  • Event callbacks
  • API for accessing & altering the tree state
  • Easily styled (comes with very minimal styling)

If you like this, support the project by starring it!

Angular 2 supported version

angular2-tree-component supports angular 2.0.0 release

Demo & full documentation:

Please refer to the full documentation:
https://angular2-tree.readme.io/docs

Examples

git clone https://github.com/500tech/angular2-tree-component

Using the CLI:

cd angular2-tree-component/example/cli
npm install
npm install -g angular-cli
ng serve

Using webpack:

cd angular2-tree-component/example/webpack
npm install
npm start

There's currently an issue with systemJS and lodash.
Until we solve it, please install lodash into the project:

npm install --save lodash

and add these lines to systemjs.config.js:

  var map = {
    'angular2-tree-component':    'node_modules/angular2-tree-component',
    'lodash':                     'node_modules/lodash',
  };

  var packages = {
    'angular2-tree-component'   : { main: 'dist/angular2-tree-component.js', defaultExtension: 'js' },
    'lodash'                    : { main: 'lodash.js', defaultExtension: 'js' },
  };

What's next

We would always love to hear suggestions for features & improvements - just open an issue.

Also, if there's anyone who created an awesome theme for angular2-tree-component - please send to [email protected].

Some things on our mind down the road:

  • virtual scroll
  • context menu
  • save & restore tree state
  • checkbox & master checkbox support

Contributing

There are currently no unit tests (yet).

However, if you wish to contribute code, you can run npm run example:cli and open localhost:4200 to test your code manually before submitting a pull request.

Please email me at [email protected] before starting to work on a feature / bug to make sure it's something that I'm not working on already.

angular2-tree-component's People

Contributors

adamkleingit avatar alexciesielski avatar awallat avatar isaacplmann avatar kilianssl avatar schmuli avatar vsavkin avatar

Watchers

 avatar  avatar

Forkers

x0156 hgithub520

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.