Comments (3)
I think the nature of this library tends to keep nodes/object manipulation out of its scope. I mean, one of the main reasons I built this, is because I didn't found a suitable component for building recursive trees (meaning, nodes w/children which have children and so on, to the infinity). Also, I see most components are full of options. I am trying to keep this simple.
The only purpose of this library is to ease the rendering process, but I'd leave node/objects customization apart. So, the developer can easily write a function that will switch the collapsed attribute anytime/anyway they want for their nodes; in fact, the nodes are just a reference to an array belonging to own user's application logic. I think is reasonable to leave this responsibility to the application itself.
If you find a reason that can beat my argument, I'm open to continue with the debate. Thanks.
from angular-treecursive.
This http://jsfiddle.net/webpolis/TyxH8/78/ will show you how I set the collapsed on/off by using ng-init inside the html declaration itself. I think that's one of the many ways you can achieve what you propose.
from angular-treecursive.
Sorry for the late reply, was away on vacation for a few days.
I agree with you, we should probably put this in an example section.
from angular-treecursive.
Related Issues (10)
- It doesn't expand with latest angular version (1.2.17) HOT 3
- Latest changes broke the library (with latest angularjs version). HOT 2
- Allow user rename 'children' property HOT 4
- Should we switch to branched development style HOT 3
- Demo not working HOT 6
- Please release bower version with support for children attr HOT 2
- Poor performance for large data structures HOT 3
- Mouse events fire twice HOT 2
- Two Instance of the directive template issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-treecursive.