angular-visjs icon indicating copy to clipboard operation
angular-visjs copied to clipboard

need to click network node manually using node Id

Open smart987 opened this issue 8 years ago • 1 comments

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?

smart987 avatar Sep 19 '16 10:09 smart987

Duplicated Stackoverflow question.

Tooa avatar Sep 24 '16 11:09 Tooa