isLinkExists

验证给定的链接是否存在

boolean isLinkExists(string | number id);
idstring | number链接的id
booleantrue 如果链接存在,否则为 false

Example

gantt.addLink({
    id:1,
    source:1,
    target:2,
    type:1
});
gantt.isLinkExists(1); // ->true

Back to top