Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Network - click event - nodeValues #1178

Closed
dockstreet opened this issue Aug 9, 2015 · 1 comment
Closed

Network - click event - nodeValues #1178

dockstreet opened this issue Aug 9, 2015 · 1 comment

Comments

@dockstreet
Copy link
Contributor

For the click event we get back the nodeIds & edgeIds.

Can the Node and Edge values come back as well? Not sure how to easily cross reference the node and edges to the Ids, without extra effort? Could just be user error on my part.

Something like ? returning maybe an array of objects instead of just ids?
{
nodes: [Array of selected nodeIds - nodeValues],
edges: [Array of selected edgeIds - edgeValues],
event: [Object] original click event,
pointer: {
DOM: {x:pointer_x, y:pointer_y},
canvas: {x:canvas_x, y:canvas_y}
}
}

@AlexDM0
Copy link
Contributor

AlexDM0 commented Aug 9, 2015

Hi,

If you were to use the vis dataset for the nodes and edges as shown in all our examples you could do:

Nodes.get(nodeId)

This is the reason we only give the ID.

Regards,

Alex

On 9 aug. 2015, at 06:01, dockstreet notifications@github.com wrote:

For the click event we get back the nodeIds & edgeIds.

Can the Node and Edge values come back as well? Not sure how to easily cross reference the node and edges to the Ids, without extra effort? Could just be user error on my part.

{
nodes: [Array of selected nodeIds],
edges: [Array of selected edgeIds],
event: [Object] original click event,
pointer: {
DOM: {x:pointer_x, y:pointer_y},
canvas: {x:canvas_x, y:canvas_y}
}
}


Reply to this email directly or view it on GitHub.

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

No branches or pull requests

2 participants