jperugini / finder-tree

AngularJS plugin for finder-tree
MIT License
8 stars 2 forks source link

Angular FinderTree

Angular Finder Tree is a directive that generate a selectable tree similar to a file explorer.

Requirements

AngularJS v1.2+

Demo

Browser support

Chrome Firefox Safari Opera IE9+
ok ok ok ok ok

Install

1. Run the following comand in your termial

$ bower install finder-tree --save

2. Add the javascript and css files to your index.html

<!DOCTYPE HTML>
<html>
    <head>
        <link href="https://github.com/jperugini/finder-tree/blob/master/finder-tree/dist/finder-tree.min.css" rel="stylesheet" type="text/css" />
        </head>
    <body ng-app="app">
        //.....
        <script src="https://github.com/jperugini/finder-tree/raw/master/finder-tree/dist/finder-tree.min.js"></script>
    </body>
</html>

3. Add module dependency in your app.js

angular.module('app', [
  'finderTree'
 ]);

4. Call the directive

<finder-tree data="data" ng-model="model" search-filter="search"></finder-tree>

Configuring Finder Tree

JSON Data

{
    'name': 'File1',
    'any other attribute': '',
    'path': ['Array path to file1']
}

Theme

You can edit the default Css file finder-tree.css if you want to make a new theme.

Contributing

Feel free to contribute by forking, opening issues, pull requests etc.

License

Released under the terms of MIT License.