Comments (4)
您好,可以试试:
km.execCommand('appendChildNode', nodeText);
from kityminder-core.
sorry.
我意思没表达准确,我的意思是
1、在某个节点children没有数据的时候可以控制其只显示一个+号(默认现在是没有+号,为叶子节点)
2、点击加号的时候触发expand事件,再事件中我会去加载子节点信息
3、加载完之后appendchild
后面两步expand事件和appendchild我知道,
就是想知道第一步是否有方法可以控制没有子节点信息的时候父节点呈现收缩状态,显示+号,等待用户点击触发expand事件
from kityminder-core.
您好,
目前不支持这种方式。但是可以变通执行,比如挂载一个标记子节点,点击加号的时候再重新创建子节点。
谢谢!
Baidu FEX | 刘家鸣 | 010-59929892 | Hi: techird
发件人: Tiny Jiang <[email protected]mailto:[email protected]>
答复: fex-team/kityminder-core <[email protected]mailto:[email protected]>
日期: Friday, March 20, 2015 at 23:29
至: fex-team/kityminder-core <[email protected]mailto:[email protected]>
抄送: Techird Liu <[email protected]mailto:[email protected]>
主题: Re: [kityminder-core] 是否支持动态加载子节点? (#3)
sorry.
我意思没表达准确,我的意思是
1、在某个节点children没有数据的时候可以控制其只显示一个+号(默认现在是没有+号,为叶子节点)
2、点击加号的时候触发expand事件,再事件中我会去加载子节点信息
3、加载完之后appendchild
后面两步expand事件和appendchild我知道,
就是想知道第一步是否有方法可以控制没有子节点信息的时候父节点呈现收缩状态,显示+号,等待用户点击触发expand事件
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-84049507.
from kityminder-core.
嗯。这个方法应该可行的。
谢谢!
from kityminder-core.
Related Issues (20)
- 布局错乱
- 您好,请问有禁止拖拽的命令吗? HOT 2
- 请问如何将脑图定位到最左边 HOT 1
- svg text标签不同famliy文字位置改变,根据平台和设备处理还是
- 缺少bower.json文件 HOT 1
- 插入图片后,立即获取数据,获得的是老数据
- 调用接口select()选中节点,无效
- 无法导出png格式和svg格式
- 这个库是不是已经不维护了
- 火狐浏览器兼容性问题
- 这是github上最强大的开源脑图了吧,为什么不开发了 HOT 2
- 导出xmind文件只有标题但不显示注释啊……什么时候能修复
- 放入容器中view_pointer平移的计算位置不准确
- 不支持vue3 HOT 1
- module destory 未实现 clearSelect
- 节点粘贴前面有4个空格的字符(如:“ aa”)或报错
- 长一些的文本会遮挡
- 默认shortcut有哪些呢?怎么自定义shortcut呢? 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 kityminder-core.