You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vm.onClick = function(params){
var nodeId = params["nodes"][0];
}
Now my requirement is reverse handling. i.e., I have captured all node ids in an array and displayed them in a list, with each nodeId as a button. Now when I click any button in this list the relevant Node in the vis.js network tree needs to be highlighted and vm.onClick needs to be called for that nodeId button click event. Is it possible?
The text was updated successfully, but these errors were encountered:
Hi, I am using vis-network directive and handling node onClick event defined in events, which is working fine.
vm.events = {
rangechange: vm.onRangeChange,
rangechanged: vm.onRangeChanged,
onload: vm.onLoaded,
select: vm.onSelect,
click: vm.onClick,
doubleClick: vm.onDoubleClick,
contextmenu: vm.rightClick
};
vm.onClick = function(params){
var nodeId = params["nodes"][0];
}
Now my requirement is reverse handling. i.e., I have captured all node ids in an array and displayed them in a list, with each nodeId as a button. Now when I click any button in this list the relevant Node in the vis.js network tree needs to be highlighted and vm.onClick needs to be called for that nodeId button click event. Is it possible?
The text was updated successfully, but these errors were encountered: