I am showing <parent node="" #=""> --> <child node="" #=""> as a label for all the edges in my Graph.But I would like to show all these labels only on click of a button. And if user clicks the button again, I would like to hide all these labels. Is this possible?

asked 19 Jul '11, 12:55

harika's gravatar image

harika
82516
accept rate: 25%

edited 22 Sep '11, 02:35

David's gravatar image

David
4.9k21831


Set this style on the edge (works for edge or vertex):

\n
noLabel=1\n
link

answered 12 Sep '11, 09:33

David's gravatar image

David
4.9k21831
accept rate: 47%

http://www.jgraph.com/demo/mxgraph/secondlabel.html

\n

Might help. Or make things worse...

link

answered 19 Jul '11, 12:59

Ed%20Hassinger's gravatar image

Ed Hassinger
11111
accept rate: 0%

The example shown is kind of toggling child vertices, but I would like to toggle labels of edges.

(21 Jul '11, 04:39) harika
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×194
×29
×3
×2
×1

Asked: 19 Jul '11, 12:55

Seen: 2,502 times

Last updated: 22 Sep '11, 02:35