Coder Social home page Coder Social logo

angular.tree's People

Contributors

dump247 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular.tree's Issues

[enhancement] Add missing bower.json.

Hey, maintainer(s) of dump247/angular.tree!

We at VersionEye are working hard to keep up the quality of the bower's registry.

We just finished our initial analysis of the quality of the Bower.io registry:

7530 - registered packages, 224 of them doesnt exists anymore;

We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).

Sadly, your library dump247/angular.tree is one of them.

Can you spare 15 minutes to help us to make Bower better?

Just add a new file bower.json and change attributes.

{
  "name": "dump247/angular.tree",
  "version": "1.0.0",
  "main": "path/to/main.css",
  "description": "please add it",
  "license": "Eclipse",
  "ignore": [
    ".jshintrc",
    "**/*.txt"
  ],
  "dependencies": {
    "<dependency_name>": "<semantic_version>",
    "<dependency_name>": "<Local_folder>",
    "<dependency_name>": "<package>"
  },
  "devDependencies": {
    "<test-framework-name>": "<version>"
  }
}

Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.

NB! Please validate your bower.json with jsonlint before commiting your updates.

Thank you!

Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!

How to add some rendering using jquery to tree?

Hi,

I have two level tree and want to add some click handlers and visual effects like slideToggle to second level to template. How to do it?

I created another directive with lower priority and tried to emit event from my controller (scope.$on and scope.$broadcast), after tree data is loaded, but this event is caught to early - before tree is rendered.

I need a way to know when tree is changed and attach a callback to add my events to added nodes.

Any help appreciated!

Example of multidimensional (3 or deeper)

Having a hard time figuring out the expected syntax when you get more than 2 levels deep as shown in the example.

I tried something to the effect of:

<ul ng-tree="clients">
    <li each="account in accounts">
        {{account.name}}
        <ul ng-tree="account">
            <li each="party in account.parties">{{party.name}}</li>
        </ul>
    </li>
</ul>

with no luck... I've also tried:

<ul ng-tree="clients">
    <li each="account in accounts">
        {{account.name}}
        <ul>
            <li each="party in account.parties">{{party.name}}</li>
        </ul>
    </li>
</ul>

Any help would be appreciated. Thank you!

how to enable drag and drop functionality with ng-tree

Having a hard time to find proper support for drag and drop compatible with ng-tree directive , actual model which passed in ng-tree it is not getting updated after drag and drop below is the code with dragula

<ul ng-tree="leftTree.children" ng-hide='treeLoading' data-id="{{item.id}}">            
                <li ng-show="$parent.item.expanded || !$parent.item"
                    ng-class="{active: item.id == selectedObj.id , unselectable:true} " data-id="{{item.id}}" id="item_{{item.id}}"
                     dragula-scope="$parent" dragula='"payrollRepo"'dragula-model="modelDrag"
                     select="selected()">
                    <div >
                        <i id="{{item.id}}"class="pull-left" ng-class="{'icon-gt-collapse': item.expanded && !item.leaf && !item.loading, 'icon-gt-expand': ((!item.expanded && !item.leaf) || item.showPlusIcon) && !item.loading, 'icon-spinner': item.loading, 'icon-spin': item.loading }" ng-click="toggleCollapse(item)"></i> 
                        <a id ="{{item.id}}" ng-click="getItemInfo(item)"  style="font-size:0.85em;"><i ng-class="{'icon-list-alt': item.leaf, 'icon-folder-close': !item.expanded && !item.leaf, 'icon-folder-open': item.expanded && !item.leaf }"></i> <span id ="{{item.id}}"ng-show="item.id > 0">{{item.description}}</span><span ng-show="item.id == 0">New Component</span></a>
                    </div>
                </li>
            </ul> 

Any help would be appreciated. Thank you!

Different template if there exist child or not.

Hi,

I just started with this directive with my style sheet.
But there is little bit of problem. I just want to remove the empty "UL" tag, and little bit differenciate when it has child or not.

how can I accomplish this problem?

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.