Comments (2)
您说的可能是onFold方法:
onFold? : (node?:any) => boolean;,execute before treenode collapse or uncollapse, returns false to
这个方法的作用是:节点被展开和关闭时调用,传入当前被展开的节点对象,如果返回值为false,则不展开或者不关闭。
您可以获得node对象的id然后去加载数据,数据加载完毕后为该节点动态生成children就可以了。
另外推荐一个同系列的弹窗插件:angular2-layer
希望能帮到你
from ng.tree.
好的,谢谢~
from ng.tree.
Related Issues (11)
- on angular4 erro HOT 1
- how to get the selected parent or child node data on click HOT 1
- How to custom edit tools? HOT 2
- css error HOT 1
- Add angular 5 support. HOT 13
- No icon? HOT 1
- issue compiling project
- how do I know if the current node is selected or not selected? HOT 2
- Template Node HOT 2
- How to add a checkbox at the node? HOT 1
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 ng.tree.