Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need to click network node manually using node Id #58

Open
smart987 opened this issue Sep 19, 2016 · 1 comment
Open

need to click network node manually using node Id #58

smart987 opened this issue Sep 19, 2016 · 1 comment

Comments

@smart987
Copy link

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?

@Tooa
Copy link

Tooa commented Sep 24, 2016

Duplicated Stackoverflow question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants