【问题标题】:Finding the jsPlumb connection between two ids查找两个 id 之间的 jsPlumb 连接
【发布时间】:2015-06-04 22:32:42
【问题描述】:

我正在尝试删除两个 html 元素之间的连接。我有这两个元素的 id,但我不知道如何在结合这两者的 jsPlumb 实例中找到连接。如何找到两个 id 之间的联系?

【问题讨论】:

    标签: javascript jquery html jsplumb


    【解决方案1】:

    从“d1”中选择所有连接并分离它们

    jsPlumb.select({source:"d1"}).detach();

    select可以带以下参数:

    [scope] String | String optional
    
    [source] String | String optional
    
    [target] String | String optional
    
    [connections] Connection[] optional
    an existing list of Connections. If you supply this, 'source' and 'target' will be ignored.
    

    参考资料:

    https://jsplumbtoolkit.com/doc/querying.html#select https://jsplumbtoolkit.com/apidocs/classes/jsPlumb.html#method_select

    【讨论】:

      猜你喜欢
      • 2013-09-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多