HTTP link on nodes

11 views
Skip to first unread message

Michel Michaels

unread,
Dec 22, 2018, 5:14:24 AM12/22/18
to cytoscape-helpdesk
Hi,

I need the following functionality: 

1) Every node has own specific http link
2) click on the node opens the page referred by http link

How to do it ?

Thanks,

Michel

Scooter Morris

unread,
Jan 3, 2019, 11:15:11 AM1/3/19
to cytoscape-helpdesk
Hi Michel,
   Well, you could do this easily with an app.  Assuming you've got a column in your node table that has the URL for the link then your app would listen for node selection and then open the appropriate page.  That *may* not be what you want, though, since clicking on a node (node selection) is a common practice and *most* of the time users would not want to see a web page.  An alternative might be to implement a NodeViewTaskFactory, which will allow you to respond to double-clicks.

-- scooter
Reply all
Reply to author
Forward
0 new messages