Giter Club home page Giter Club logo

Comments (3)

webpolis avatar webpolis commented on June 16, 2024

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.

webpolis avatar webpolis commented on June 16, 2024

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.

flakron avatar flakron commented on June 16, 2024

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)

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.