Cytoscape: How to add background image to node using relative path like '../images/test.jpeg'?

10 views
Skip to first unread message

kejal...@gmail.com

unread,
Aug 16, 2017, 8:03:53 AM8/16/17
to cytoscape-helpdesk, kej...@cybage.com
I am trying to build up a flowchart using Cytoscape.js. Can anyone tell me how to set 'background-image' from a local file system path?

Code:

We want to use image from "C:/images/Test.jpg" instead of any url

.selector('.option')
.css({
'background-image': 'http://farm7.staticflickr.com/6098/6224655456_f4c3c98589_b.jpg'‌​; })

Thanks in advance. Kejal

Barry Demchak

unread,
Aug 16, 2017, 11:37:24 AM8/16/17
to cytoscape...@googlegroups.com, kej...@cybage.com
This is better addressed in Stack Overflow (e.g., https://stackoverflow.com/questions/37437690/cytoscape-js-cose-layout-with-animation)
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpd...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/6916b708-647f-4d37-8efe-28abacb98b75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages