When drag and drop a tool bar entry to the graph, I wish to create multiple cells on the graph. For example, two triangles and a edge that connects these two triangles. I looked at the Toolbar.html example where a tool bar entry is created by selecting a set of preexisting cells on the graph.

\n

My problem is that in my application, I cannot define my tool bar entry by selecting preexisting cells on the graph. The tool bar entry has to be predefined.

\n

Thanks,

\n

Annie

asked 09 Nov '11, 12:35

Annie's gravatar image

Annie
13
accept rate: 0%


Try creating the cells programmatically instead.

link

answered 09 Nov '11, 23:55

Gaudenz's gravatar image

Gaudenz
80.1k1310
accept rate: 39%

Thanks Gaudenz. \nI am new to mxGraph, you pointed me to the right direction. It worked. \nAnnie

(11 Nov '11, 11:50) Annie
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:

×10

Asked: 09 Nov '11, 12:35

Seen: 1,305 times

Last updated: 11 Nov '11, 11:50