Code Monkey home page Code Monkey logo

Comments (2)

1inus avatar 1inus commented on July 24, 2024

您说的可能是onFold方法:
onFold? : (node?:any) => boolean;,execute before treenode collapse or uncollapse, returns false to

这个方法的作用是:节点被展开和关闭时调用,传入当前被展开的节点对象,如果返回值为false,则不展开或者不关闭。

您可以获得node对象的id然后去加载数据,数据加载完毕后为该节点动态生成children就可以了。

另外推荐一个同系列的弹窗插件:angular2-layer

希望能帮到你

from ng.tree.

cuiliang avatar cuiliang commented on July 24, 2024

好的,谢谢~

from ng.tree.

Related Issues (11)

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.