查找两个 id 之间的 jsPlumb 连接
Finding the jsPlumb connection between two ids
我正在尝试删除两个 html 元素之间的连接。我有这两个元素的 ID,但我不知道如何在结合这两个元素的 jsPlumb 实例中找到连接。如何找到两个id之间的联系?
Select 来自 "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
我正在尝试删除两个 html 元素之间的连接。我有这两个元素的 ID,但我不知道如何在结合这两个元素的 jsPlumb 实例中找到连接。如何找到两个id之间的联系?
Select 来自 "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