dump247 / angular.tree Goto Github PK
View Code? Open in Web Editor NEWThis project is not maintained
This project is not maintained
When the tree is put into the Accordion in UI Bootstrap the select event is not fired. See this Stackoverflow article for a full description and demo.
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!
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!
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!
?
Is it possible to include some basic CSS for the angularTree on hover and selected item
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!
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.