Giter Site home page Giter Site logo

Comments (4)

techird avatar techird commented on September 26, 2024

您好,可以试试:

km.execCommand('appendChildNode', nodeText);

from kityminder-core.

TinyJiang avatar TinyJiang commented on September 26, 2024

sorry.
我意思没表达准确,我的意思是
1、在某个节点children没有数据的时候可以控制其只显示一个+号(默认现在是没有+号,为叶子节点)
2、点击加号的时候触发expand事件,再事件中我会去加载子节点信息
3、加载完之后appendchild

后面两步expand事件和appendchild我知道,
就是想知道第一步是否有方法可以控制没有子节点信息的时候父节点呈现收缩状态,显示+号,等待用户点击触发expand事件

from kityminder-core.

techird avatar techird commented on September 26, 2024

您好,

目前不支持这种方式。但是可以变通执行,比如挂载一个标记子节点,点击加号的时候再重新创建子节点。

谢谢!

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.

TinyJiang avatar TinyJiang commented on September 26, 2024

嗯。这个方法应该可行的。
谢谢!

from kityminder-core.

Related Issues (20)

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.